好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



MSR系列路由器

IPv6路由协议之OSPFv3双进程路由互通功能的配置

 

关键字: MSR;IPv6;OSPFv3

一、组网需求

      利用OSPFv3协议传递路由信息,使RTARTC上的loopBack地址可以互通。

试验设备RTAMSR20-21),RTBMSR20-20,RTCMSR30-20

二、组网图

1 OSPFv3路由协议组网图

IP地址列表:

设备

接口

IPv6地址

RTA

LoopBack1

100::1/128

E0/1

1::1/64

Ospfv3 router id

1.1.1.1

RTB

E0/0

2::2/64

E0/1

1::2/64

Ospfv3 router id

2.2.2.2

RTC

LoopBack1

200::1/128

G0/1

2::164

Ospfv3 router id

3.3.3.3

三、配置步骤

RTA配置

#

 ipv6

#

//配置接口LoopBack1IP地址,并将地址加入到ospfv3的进程100,区域0

#

interface LoopBack1

 ipv6 address 200::1/128

 ospfv3 200 area 0.0.0.0

//配置接口E0/1IP地址,

//并将地址加入到ospfv3的进程100,区域0

#

interface GigabitEthernet0/1

 port link-mode route

 ipv6 address 2::1/64

 ospfv3 200 area 0.0.0.0

//建立进程号为200的进程,建立区域0.0.0.0

#

ospfv3 200

 router-id 3.3.3.3

#

return

RTB配置

#

 ipv6

//配置接口E0/0IP地址,

//并将地址加入到ospfv3的进程200,区域0

#

interface Ethernet0/0

 port link-mode route

 ipv6 address 2::2/64

 ospfv3 200 area 0.0.0.0

//配置接口E0/1IP地址

//并将地址加入到ospfv3的进程100,区域0

#

interface Ethernet0/1

 port link-mode route

 ipv6 address 1::2/64

 ospfv3 100 area 0.0.0.0

//建立进程号为100ospfv3进程建立区域0.0.0.0

#

ospfv3 100

 router-id 21.21.21.21

 //引入直连路由

 import-route direct

 //引入ospfv3进程号为200的路由

 import-route ospfv3 200

//建立进程号为200ospfv3进程建立区域0.0.0.0

#              

ospfv3 200

 router-id 22.22.22.22

 //引入直连路由

 import-route direct

 //引入ospfv3进程号为100的路由

 import-route ospfv3 100

#

return

RTC配置

#

 ipv6

//配置接口LoopBack1IP地址,并将地址加入到ospfv3的进程100,区域0

#

interface LoopBack1

 ipv6 address 200::1/128

 ospfv3 200 area 0.0.0.0

#

interface GigabitEthernet0/0

 port link-mode route

//配置接口E0/1IP地址

//并将地址加入到ospfv3的进程100,区域0

#

interface GigabitEthernet0/1

 port link-mode route

 ipv6 address 2::1/64

 ospfv3 200 area 0.0.0.0

//建立进程号为200的进程,建立区域0.0.0.0

#

ospfv3 200

 router-id 3.3.3.3

#

return

 

四、试验分析

    完成以上配置后,RTCRTA各地之间可以互通:

[RTA-2021]ping ipv6 200::1

  PING 200::1 : 56  data bytes, press CTRL_C to break

    Reply from 200::1

    bytes=56 Sequence=1 hop limit=63  time = 2 ms

    Reply from 200::1

    bytes=56 Sequence=2 hop limit=63  time = 2 ms

    Reply from 200::1

    bytes=56 Sequence=3 hop limit=63  time = 2 ms

    Reply from 200::1

    bytes=56 Sequence=4 hop limit=63  time = 2 ms

    Reply from 200::1

    bytes=56 Sequence=5 hop limit=63  time = 2 ms

 

  --- 200::1 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 2/2/2 ms

RTBospfv3路由表如下

<RTB-2020>display ospfv routing

 

 E1 - Type 1 external route,    IA - Inter area route,    I  - Intra area route

 E2 - Type 2 external route,    *  - Selected route

 

            OSPFv3 Router with ID (21.21.21.21) (Process 100)

 ------------------------------------------------------------------------

 *Destination: 1::/64                                       

  Type       : I                                        Cost     : 1

  NextHop    : directly-connected                       Interface: Eth0/1

 

 *Destination: 100::1/128                                   

  Type       : I                                        Cost     : 1

  NextHop    : FE80::20F:E2FF:FE3A:FF54                 Interface: Eth0/1

 

 

            OSPFv3 Router with ID (22.22.22.22) (Process 200)

 ------------------------------------------------------------------------

 *Destination: 2::/64                                       

  Type       : I                                        Cost     : 1

  NextHop    : directly-connected                       Interface: Eth0/0

               

 *Destination: 200::1/128                                   

  Type       : I                                        Cost     : 1

  NextHop    : FE80::20F:E2FF:FE3A:FE8C                 Interface: Eth0/0

 

X Close
X Close