扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
OSPF路由协议是链路状态型路由协议,这里的链路即设备上的接口。链路状态型路由协议基于连接源和目标设备的链路状态作出路由的决定。链路状态是接口及其与邻接网络设备的的关系的描述,接口的信息即链路的信息,也就是链路的状态(信息)。这些信息包括接口的IPv6前缀(prefix)、网络掩码、接口连接的网络(链路)类型、与该接口在同一网络(链路)上的路由器等信息。这些链路状态信息由不同类型的LSA携带,在网络上传播。
路由器把收集到的LSA存储在链路状态数据库中,然后运行SPF算法计算出路由表。链路状态数据库和路由表的本质不同在于:数据库中包含的是完整的链路状态原始数据,而路由表中列出的是到达所有已知目标网络的最短路径的列表。
OSPF协议是为IP协议提供路由功能的路由协议。OSPFv2(OSPF版本2)是支持IPv4的路由协议,为了让OSPF协议支持IPv6,技术人员开发了OSPFv3(OSPF版本3),OSPFv3由RFC2740定义。
OSPFv3与OSPFv2
数据包结构
IPv6 使用的LSA类型
配置OSPFv3
NBMA配置示例
配置OSPFv3认证
配置OSPFv3
提示:本小节使用的命令基于IOS 12.4T。
基本配置命令
1. 启动IPv6单播路由功能
命令语法如下:
router(config)# ipv6 unicast-routing
2. 在接口上启用IPv6
命令语法如下:
router(config-if)# ipv6 enable
该命令可以使一个没有配置IPv6地址的接口启用IPv6进程,并自动为接口配置一个本链路(link-local)地址。
(1)下面的输出显示了f0/0接口上没有启用IPv6和启用IPv6后的不同情况。
FastEthernet0/0 is up, line protocol is up
Hardware is AmdFE, address is 000e.38ee.39a0 (bia 000e.38ee.39a0)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
(略)
输出显示,f0/0接口的MAC地址是000e.38ee.39a0。
启用IPv6后的输出如下:
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::20E:38FF:FEEE:39A0
No global unicast address is configured
Joined group address(es):
FF02::1
FF02::1:FFEE:39A0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
输出显示,启用IPv6的以太接口自动把MAC地址转换成EUI-64格式,构成本链路地址。该接口也自动加入两个组播组中:本链路范围内所有IPv6节点组和被请求节点组中。
(2)下面的输出显示的是在s0/0接口上启用IPv6后的情况。
Serial0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::20E:38FF:FEEE:39A0
No global unicast address is configured
Joined group address(es):
FF02::1
FF02::1:FFEE:39A0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
3. 为接口设置单点传送地址
为运行IPv6的路由器接口设置地址的方法有多种,下面介绍3种常用的方法。
(1)直接手工设置地址。
命令语法如下:
router(config-if)# ipv6 address ipv6-address/prefix-length
ipv6-address/prefix-length:IPv6地址及地址前缀长度。
(2)自动使用基于EUI-64格式的主机地址。
命令语法如下:
router(config-if)# ipv6 address ipv6-prefix/prefix-length eui-64
ipv6-prefix/prefix-length:IPv6地址前缀及前缀长度。
该命令相当于为接口设置了网络前缀,节点号就直接使用了符合EUI-64格式的接口地址(接口物理地址)。如果设置的前缀长度大于64,前缀中的比特位优先于接口地址的比特位。
在接口上设置IPv6地址,就自动启用了该接口的IPv6进程,并且”no ipv6 enable”命令不能禁止该接口上的IPv6进程。
例如,为接口ethernet 0设置IPv6地址:
Router(config)# interface fastethernet 0/0
Router(config-if)# ipv6 address 2006 : 1010 : 0 : 1 :: /64 eui-64
设置了全球单点传送地址后的输出如下:
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::20E:38FF:FEEE:39A0
Global unicast address(es):
2006:1010:0:1:20E:38FF:FEEE:39A0, subnet is 2006:1010:0:1::/64
Joined group address(es):
FF02::1
FF02::1:FFEE:39A0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds
(3)自动配置地址。
命令语法如下:
Router(config-if)# ipv6 address autoconfig
该命令启动了IPv6的自动地址配置功能,自动发现链路上的地址前缀,然后在前缀后面自动加上EUI-64格式的接口物理地址,构成接口的IPv6地址。
4. 设置路由器ID
在IPv6环境下,可以使用如下几种方式为路由器设置ID号:
(1)如果物理接口上设置了IPv4地址,路由器自动选择活跃接口上的最高IPv4地址作为其ID号。
(2)如果设置了loopback接口,则优先使用loopback接口地址作为路由器ID。如果存在多个loopback接口,则使用最高接口地址。
(3)如果没有任何接口配置了IPv4地址,则必须使用如下命令为路由器设置ID号:
router(config)# ipv6 router ospf process-id
router(config-rtr)# router-id ipv4-format-id
process-id:进程号;
ipv4-format-id:IPv4格式的路由器ID号。
5. 在接口上启用OSPF
命令语法如下:
Router(config-if)# ipv6 ospf process-id area area-id [instance instance-id]
Process-id:进程号;
Area-id:区域号;
Instance-id:实例号。
该命令把接口置于某个OSPF进程的某个区域中,并且还可以声明其使用的实例编号。
在接口上启用OSPF,可以自动启用OSPF进程,不需要再单独使用令ipv6 router ospf process-id 启用进程;该命令也同时启用了IPv6的单播路由功能。
配置路由总结
命令语法如下:
Router(config)# ipv6 router ospf process-id
Router(config-rtr)# area area-id range ipv6-prefix/prefix-length [advertise | not-advertise] [cost cost]
该命令的含义和OSPFv2中的路由总结命令含义相同,其中:
area-id:表示总结某个区域内的路由;
ipv6-prefix/prefix-length:总结后的路由前缀及前缀长度;
advertise:通告该总结路由条目;
not-advertise:不通告该总结路由条目;
cost:为该总结路由赋予的开销值。缺省地,总结路由条目的开销使用被总结路由中的最高开销值。
OSPFv3配置示例
提示:下面的实验环境使用的IOS版本是12.3(20), 高级企业特性集。
图 4-4 配置示例拓扑
配置示例中使用的拓扑如图4-4所示。路由器R1和R2通过点到点链路把两个局域网连接起来。两个串行接口运行在区域0中。R1的以太接口和环回接口运行在区域3中,R2的以太接口和环回接口运行在区域2中。下面分别配置R1和R2。
(1)配置路由器R1。
Router1#config t
Router1(config)#ipv6 unicast-routing
router1(config)#ipv6 router ospf 1
router1(config-rtr)#router-id 1.1.1.1
router1(config-rtr)#exit
router1(config)#interface f0/0
router1(config-if)#ipv6 address 2006:1010:0:1::/64 eui-64
router1(config-if)# ipv6 ospf 1 area 3
router1(config-if)#interface s0/0
router1(config-if)# ipv6 ospf 1 area 0
router1(config-if)#exit
router1(config)#interface loopback 1
router1(config-if)#ipv6 address 2006:1010:0:2::/64 eui-64
router1(config-if)#ipv6 ospf 1 area 3
router1(config-if)#interface loopback 2
router1(config-if)#ipv6 add 2006:1010:0:3::/64 eui-64
router1(config-if)#ipv6 ospf 1 area 3
router1(config-if)#exit
router1(config)#
配置完成后的配置列表如下所示(仅列出相关内容):
hostname router1
!
ipv6 unicast-routing
!
interface Loopback1
no ip address
ipv6 address 2006:1010:0:2::/64 eui-64
ipv6 ospf 1 area 3
!
interface Loopback2
no ip address
ipv6 address 2006:1010:0:3::/64 eui-64
ipv6 ospf 1 area 3
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 2006:1010:0:1::/64 eui-64
ipv6 enable
ipv6 ospf 1 area 3
!
interface Serial0/0
no ip address
ipv6 enable
ipv6 ospf 1 area 0
no fair-queue
!
ipv6 router ospf 1
router-id 1.1.1.1
log-adjacency-changes
(2)配置路由器R2。
Router2#config t
Router2(config)#ipv6 unicast-routing
Router2(config)#ipv6 router ospf 1
Router2(config-rtr)#router-id 2.2.2.2
Router2(config-rtr)#exit
Router2(config)#interface f0/0
Router2(config-if)#ipv6 address 2006:1010:0:5::/64 eui-64
Router2(config-if)# ipv6 ospf 1 area 2
Router2(config-if)#interface s0/0
Router2(config-if)# ipv6 ospf 1 area 0
Router2(config-if)#exit
Router2(config)#interface loopback 1
Router2(config-if)#ipv6 address 2006:1010:0:6::/64 eui-64
Router2(config-if)#ipv6 ospf 1 area 2
Router2(config-if)#interface loopback 2
Router2(config-if)#ipv6 add 2006:1010:0:7::/64 eui-64
Router2(config-if)#ipv6 ospf 1 area 2
Router2(config-if)#exit
Router2(config)#
配置完成后的配置列表如下所示(仅列出相关内容):
hostname router2
!
ipv6 unicast-routing
!
interface Loopback1
no ip address
ipv6 address 2006:1010:0:6::/64 eui-64
ipv6 ospf 1 area 2
!
interface Loopback2
no ip address
ipv6 address 2006:1010:0:7::/64 eui-64
ipv6 ospf 1 area 2
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 2006:1010:0:5::/64 eui-64
ipv6 ospf 1 area 2
!
interface Serial0/0
no ip address
ipv6 enable
ipv6 ospf 1 area 0
!
ipv6 router ospf 1
router-id 2.2.2.2
5.2 检查OSPFv3的运行状态
1. show ipv6 ospf
router2#sh ipv6 ospf
Routing Process "ospfv3 1" with ID 2.2.2.2
It is an area border router
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Area BACKBONE(0)
Number of interfaces in this area is 1
SPF algorithm executed 7 times
Number of LSA 8. Checksum Sum 0x04C5E5
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 2
Number of interfaces in this area is 1
SPF algorithm executed 3 times
Number of LSA 6. Checksum Sum 0x013219
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
该命令显示了路由器R2上OSPFv3的基本运行情况。
该路由器上运行的OSPFv3的进程号为1;路由器ID号是2.2.2.2;该路由器是一台区域边界路由器。该路由器上有两个区域,并且都是标准区域(normal area)。
在骨干(backbone)区域内有一个接口;该区域中的SPF算法已经执行了7次;区域0中的LSA共有8个。
在区域2中有一个接口;该区域中的SPF算法已经执行了3次;该区域中的LSA共有6个。
2. show ipv6 ospf neighbor
router1#sh ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/ - 00:00:34 5 Serial0/0
router1#
该命令显示了路由器R1的邻居情况。其中,interface ID一列显示的是邻居路由器与路由器R1相连接口的ID号。
3. show ipv6 ospf neighbor detail
router1#sh ipv6 ospf neighbor detail
Neighbor 2.2.2.2
In the area 0 via interface Serial0/0
Neighbor: interface-id 5, link-local address FE80::20C:31FF:FEE9:860
Neighbor priority is 1, State is FULL, 6 state changes
Options is 0x831C1F25
Dead timer due in 00:00:32
Neighbor is up for 00:13:28
Index 1/1/1, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 2, maximum is 2
Last retransmission scan time is 0 msec, maximum is 0 msec
该命令报告了邻居的详细信息。路由器R1在区域0中的s0/0接口上建立了一个邻居关系,邻居的ID为2.2.2.2;邻居的接口ID为5,该接口的本链路地址为FE80::20C:31FF:FEE9:860。邻居的优先级为1,处于数据库同步状态(full),曾经有过6次状态改变。
4. show ipv6 ospf interface
router2#sh ipv6 ospf int s0/0
① Serial0/0 is up, line protocol is up
② Link Local Address FE80::20C:31FF:FEE9:860, Interface ID 5
③ Area 0, Process ID 1, Instance ID 0, Router ID 2.2.2.2
④ Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:06
Index 1/1/1, flood queue length 0
Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 2, maximum is 2
Last flood scan time is 0 msec, maximum is 0 msec
⑤ Neighbor Count is 1, Adjacent neighbor count is 1
⑥ Adjacent with neighbor 1.1.1.1
Suppress hello for 0 neighbor(s)
第一行报告了接口是否处于up状态;
第二行报告了接口的本链路地址和接口ID;
第三行报告了接口运行在的区域号、进程号、实例号及路由器ID号;
第四行报告了接口运行在点到点网络类型上;
第五行报告了在该接口上物理邻居数量和相邻关系数量;
第六行报告了与邻居1.1.1.1建立了相邻关系。
5. show ipv6 ospf database
下面显示的是在路由器R2的两个环回接口还没有运行在OSPF进程中时,路由器R1上的链路状态数据库。
router1#sh ipv6 ospf database
OSPFv3 Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 880 0x80000002 0 1 B
2.2.2.2 885 0x80000005 0 1 B
Inter Area Prefix Link States (Area 0)
ADV Router Age Seq# Prefix
1.1.1.1 875 0x80000001 2006:1010:0:1::/64
1.1.1.1 253 0x80000001 2006:1010:0:2:20E:38FF:FEEE:39A0/128
1.1.1.1 229 0x80000001 2006:1010:0:3:20E:38FF:FEEE:39A0/128
2.2.2.2 1699 0x80000001 2006:1010:0:5::/64
Link (Type-8) Link States (Area 0)
ADV Router Age Seq# Link ID Interface
1.1.1.1 880 0x80000002 5 Se0/0
2.2.2.2 1754 0x80000001 5 Se0/0
Router Link States (Area 3)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 233 0x80000004 0 0 B
Inter Area Prefix Link States (Area 3)
ADV Router Age Seq# Prefix
1.1.1.1 877 0x80000001 2006:1010:0:5::/64
Link (Type-8) Link States (Area 3)
ADV Router Age Seq# Link ID Interface
1.1.1.1 887 0x80000001 4 Fa0/0
Intra Area Prefix Link States (Area 3)
ADV Router Age Seq# Link ID Ref-lstype Ref-LSID
1.1.1.1 235 0x80000003 0 0x2001 0
router1#
其中:
l “ADV Router” 一列表示通告LSA的路由器ID;
l “Age” 一列表示LSA在数据库中存留的时间;
l “Seq#” 一列表示LSA的序列码;
l “Fragment ID” 一列表示LSA的分段编号(如果LSA过大会分段传送);
l “Link count” 一列表示路由器在该区域内的链路数量;
l “Bits” 一列的值为“B”,表示是一台区域边界路由器。
l “Prefix” 一列表示LSA携带的地址前缀;
l “Link ID” 一列表示接口的ID号;
l “interface” 一列表示路由器在哪些接口上产生的类型8 LSA;
l “Ref-lstype” 一列表示参考的是哪种类型的LSA;
l “Ref-LSID” 一列表示参考的链路 ID号。
提示:相邻关系没有达到full状态或者处于down状态的接口,以及环回接口不被描述,因此,路由器R1在区域3中的接口数量为0。
6. show ipv6 ospf database router
router1#sh ipv6 ospf database router
OSPFv3 Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
1. LS age: 911
2. Options: (V6-Bit E-Bit R-bit DC-Bit)
3. LS Type: Router Links
4. Link State ID: 0
5. Advertising Router: 1.1.1.1
6. LS Seq Number: 80000002
7. Checksum: 0xC0E7
8. Length: 40
9. Area Border Router
10. Number of Links: 1
11. Link connected to: another Router (point-to-point)
12. Link Metric: 64
13. Local Interface ID: 5
14. Neighbor Interface ID: 5
15. Neighbor Router ID: 2.2.2.2
Routing Bit Set on this LSA
LS age: 917
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Router Links
Link State ID: 0
Advertising Router: 2.2.2.2
LS Seq Number: 80000005
Checksum: 0x4A5B
Length: 40
Area Border Router
Number of Links: 1
Link connected to: another Router (point-to-point)
Link Metric: 64
Local Interface ID: 5
Neighbor Interface ID: 5
Neighbor Router ID: 1.1.1.1
Router Link States (Area 3)
LS age: 268
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Router Links
Link State ID: 0
Advertising Router: 1.1.1.1
LS Seq Number: 80000004
Checksum: 0xCD3C
Length: 24
Area Border Router
Number of Links: 0
下面只解释路由器R1在区域0中通告的路由器LSA(LSA类型1),其他部分的含义请读者参考该部分的解释去理解。
第一行,该LSA在数据库中存活时间;
第二行,选项比特的设置情况。有关选项比特的含义和功能意义深刻,已超出本书讨论范围,请读者参考RFC2740。
第三行,LSA类型;
第四行,LSA ID;
第五行,通告者路由器ID;
第六行,LSA的序列码;
第七行,校验值;
第八行,长度;
第九行,该路由器是一台ABR;
第十行,该路由器有一条链路在区域0中;
第十一行,该链路与另一台路由器相连,是一条点到点链路;
第十二行,链路度量值;
第十三行,本路由器接口ID号;
第十四行,邻居路由器接口ID号;
第十五行,邻居路由器ID号;
7. show ipv6 ospf database inter-area prefix
router1#sh ipv6 ospf database inter-area prefix
OSPFv3 Router with ID (1.1.1.1) (Process ID 1)
Inter Area Prefix Link States (Area 0)
LS age: 1296
LS Type: Inter Area Prefix Links
Link State ID: 0
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xCEDB
Length: 36
Metric: 1
Prefix Address: 2006:1010:0:1::
Prefix Length: 64, Options: None
LS age: 673
LS Type: Inter Area Prefix Links
Link State ID: 1
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xB49C
Length: 44
Metric: 0
Prefix Address: 2006:1010:0:2:20E:38FF:FEEE:39A0
Prefix Length: 128, Options: None
LS age: 653
LS Type: Inter Area Prefix Links
Link State ID: 2
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xBC92
Length: 44
Metric: 0
Prefix Address: 2006:1010:0:3:20E:38FF:FEEE:39A0
Prefix Length: 128, Options: None
Routing Bit Set on this LSA
LS age: 140
LS Type: Inter Area Prefix Links
Link State ID: 0
Advertising Router: 2.2.2.2
LS Seq Number: 80000002
Checksum: 0xF6AA
Length: 36
Metric: 1
Prefix Address: 2006:1010:0:5::
Prefix Length: 64, Options: None
Inter Area Prefix Link States (Area 3)
1. LS age: 1302
2. LS Type: Inter Area Prefix Links
3. Link State ID: 0
4. Advertising Router: 1.1.1.1
5. LS Seq Number: 80000001
6. Checksum: 0x98CD
7. Length: 36
8. Metric: 65
9. Prefix Address: 2006:1010:0:5::
10. Prefix Length: 64, Options: None
router1#
8. show ipv6 ospf database prefix
router1#sh ipv6 ospf database prefix
OSPFv3 Router with ID (1.1.1.1) (Process ID 1)
Intra Area Prefix Link States (Area 3)
Routing Bit Set on this LSA
LS age: 700
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0
Advertising Router: 1.1.1.1
LS Seq Number: 80000003
Checksum: 0x840F
Length: 84
Referenced LSA Type: 2001
Referenced Link State ID: 0
Referenced Advertising Router: 1.1.1.1
Number of Prefixes: 3
Prefix Address: 2006:1010:0:3:20E:38FF:FEEE:39A0
Prefix Length: 128, Options: LA , Metric: 0
Prefix Address: 2006:1010:0:2:20E:38FF:FEEE:39A0
Prefix Length: 128, Options: LA , Metric: 0
Prefix Address: 2006:1010:0:1::
Prefix Length: 64, Options: None, Metric: 1
以上是路由器R1向区域3中通告的LSA类型9。下面只解释该类型LSA携带的专有信息。
l Referenced LSA Type: 2001 —— 表示参考的LSA类型;
l Referenced Link State ID: 0 —— 表示参考的链路ID;如果参考的LSA类型为1,该值为0。
l Referenced Advertising Router: 1.1.1.1 —— 表示被参考的路由器ID;
l Number of Prefixes: 3 —— 表示该LSA携带了3个前缀。这3个前缀分别是(1)2006:1010:0:3:20E:38FF:FEEE:39A0,前缀长度为128,度量为0,选项LA(local address)表示该前缀实际上是通告者路由器的接口地址。(2)2006:1010:0:2:20E:38FF:FEEE:39A0,前缀长度为128,度量为0,选项LA(local address)表示该前缀是通告者路由器的接口地址。(3)2006:1010:0:1::,前缀长度是64,度量为1。
9. show ipv6 route
下面是路由器R2上的3个环回接口运行在OSPF进程后,两台路由器上的路由表。
(1)路由器R1的路由表
router1#sh ipv6 route
IPv6 Routing Table - 11 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C 2006:1010:0:1::/64 [0/0]
via ::, FastEthernet0/0
L 2006:1010:0:1:20E:38FF:FEEE:39A0/128 [0/0]
via ::, FastEthernet0/0
C 2006:1010:0:2::/64 [0/0]
via ::, Loopback1
L 2006:1010:0:2:20E:38FF:FEEE:39A0/128 [0/0]
via ::, Loopback1
C 2006:1010:0:3::/64 [0/0]
via ::, Loopback2
L 2006:1010:0:3:20E:38FF:FEEE:39A0/128 [0/0]
via ::, Loopback2
OI 2006:1010:0:5::/64 [110/65]
via FE80::20C:31FF:FEE9:860, Serial0/0
OI 2006:1010:0:6:20C:31FF:FEE9:860/128 [110/64]
via FE80::20C:31FF:FEE9:860, Serial0/0
OI 2006:1010:0:7:20C:31FF:FEE9:860/128 [110/64]
via FE80::20C:31FF:FEE9:860, Serial0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
router1#
(2)路由器R2的路由表
router2#sh ipv6 route
IPv6 Routing Table - 11 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
OI 2006:1010:0:1::/64 [110/65]
via FE80::20E:38FF:FEEE:39A0, Serial0/0
OI 2006:1010:0:2:20E:38FF:FEEE:39A0/128 [110/64]
via FE80::20E:38FF:FEEE:39A0, Serial0/0
OI 2006:1010:0:3:20E:38FF:FEEE:39A0/128 [110/64]
via FE80::20E:38FF:FEEE:39A0, Serial0/0
C 2006:1010:0:5::/64 [0/0]
via ::, FastEthernet0/0
L 2006:1010:0:5:20C:31FF:FEE9:860/128 [0/0]
via ::, FastEthernet0/0
C 2006:1010:0:6::/64 [0/0]
via ::, Loopback1
L 2006:1010:0:6:20C:31FF:FEE9:860/128 [0/0]
via ::, Loopback1
C 2006:1010:0:7::/64 [0/0]
via ::, Loopback2
L 2006:1010:0:7:20C:31FF:FEE9:860/128 [0/0]
via ::, Loopback2
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
router2#
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。