MSR系列路由器
IPv6路由协议之OSPFv3双进程路由互通功能的配置
关键字: MSR;IPv6;OSPFv3
利用OSPFv3协议传递路由信息,使RTA、RTC上的loopBack地址可以互通。
试验设备:RTA(MSR20-21),RTB(MSR20-20),RTC(MSR30-20)
图1 OSPFv3路由协议组网图
IP地址列表:
设备 |
接口 |
IPv6地址 |
RTA |
LoopBack1 |
100::1/128 |
E0/1 |
1::1/64 |
|
Ospfv3 router id |
|
|
RTB |
E0/0 |
2::2/64 |
E0/1 |
1::2/64 |
|
Ospfv3
router id |
|
|
RTC |
LoopBack1 |
200::1/128 |
G0/1 |
2::164 |
|
Ospfv3
router id |
|
RTA配置 |
# ipv6 # //配置接口LoopBack1的IP地址,并将地址加入到ospfv3的进程100,区域0中 # interface LoopBack1 ipv6 address 200::1/128 ospfv3 200 are //配置接口E0/1的IP地址, //并将地址加入到ospfv3的进程100,区域0中 # interface GigabitEthernet0/1 port
link-mode route ipv6 address
2::1/64 ospfv3 200
are //建立进程号为200的进程,建立区域 # ospfv3 200 router-id # return |
RTB配置 |
# ipv6 //配置接口E0/0的IP地址, //并将地址加入到ospfv3的进程200,区域0中 # interface Ethernet0/0 port
link-mode route ipv6
address 2::2/64 ospfv3 200
are //配置接口E0/1的IP地址, //并将地址加入到ospfv3的进程100,区域0中 # interface Ethernet0/1 port link-mode route ipv6 address 1::2/64 ospfv3 100 are //建立进程号为100的ospfv3进程,建立区域 # ospfv3 100 router-id //引入直连路由 import-route
direct //引入ospfv3进程号为200的路由 import-route
ospfv3 200 //建立进程号为200的ospfv3进程,建立区域 #
ospfv3 200 router-id //引入直连路由 import-route
direct //引入ospfv3进程号为100的路由 import-route
ospfv3 100 # return |
RTC配置 |
# ipv6 //配置接口LoopBack1的IP地址,并将地址加入到ospfv3的进程100,区域0中 # interface
LoopBack1 ipv6 address 200::1/128 ospfv3 200 are # interface
GigabitEthernet0/0 port link-mode route //配置接口E0/1的IP地址, //并将地址加入到ospfv3的进程100,区域0中 # interface GigabitEthernet0/1 port
link-mode route ipv6 address
2::1/64 ospfv3 200
are //建立进程号为200的进程,建立区域 # ospfv3 200 router-id # return |
四、试验分析
完成以上配置后,RTC与RTA各地址之间可以互通:
[RTA-2021]ping ipv6 200::1
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 =
RTB的ospfv3路由表如下:
<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 (
------------------------------------------------------------------------
*Destination: 1::/64
Type : I
Cost : 1
NextHop : directly-connected
Interface: Eth0/1
*Destination: 100::1/128
Type : I
Cost : 1
NextHop : FE80::
OSPFv3 Router with ID (
------------------------------------------------------------------------
*Destination: 2::/64
Type : I
Cost : 1
NextHop : directly-connected Interface:
Eth0/0
*Destination: 200::1/128
Type : I
Cost : 1
NextHop : FE80::