rack02#sh ipv route
IPv6 Routing Table - 7 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 O 2000::1/128 [110/64]
via FE80::C800:EFF:FE98:0, Serial1/0 C 2001::/64 [0/0] via ::, Serial1/0 L 2001::2/128 [0/0] via ::, Serial1/0 C 2002::/64 [0/0] via ::, Loopback0 L 2002::1/128 [0/0] via ::, Loopback0 L FE80::/10 [0/0] via ::, Null0 L FF00::/8 [0/0] via ::, Null0
我们在 R1 上做一下测试: rack01#ping 2002::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002::1, timeout is 2 seconds: !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/38/92 ms 测试成功,我们来看一看其他的变化 rack01#sh ipv ospf nei
Neighbor ID Pri State Dead Time Interface ID Interface 2.2.2.2 1 FULL/ - 00:00:34 5 Serial1/1 %OSPFv3: Router process 1 is not running, please configure a router-id
在这里我们看见了 邻居的一些信息
Page 27 of 39
rack01#sh ipv ospf da
OSPFv3 Router with ID (1.1.1.1) (Process ID 100)
Router Link States (Area 0)
ADV Router Age Seq# Fragment ID Link count Bits 1.1.1.1 1165 0x80000003 0 1 None 2.2.2.2 1160 0x80000003 0 1 None
Link (Type-8) Link States (Area 0)
ADV Router Age Seq# Link ID Interface 1.1.1.1 1205 0x80000001 6 Se1/1 2.2.2.2 1172 0x80000001 5 Se1/1 1.1.1.1 1221 0x80000001 13 Lo0
Intra Area Prefix Link States (Area 0)
ADV Router Age Seq# Link ID Ref-lstype 1.1.1.1 1205 0x80000002 0 0x2001 2.2.2.2 1172 0x80000001 0 0x2001 %OSPFv3: Router process 1 is not running, please configure a router-id
我们在数据库中看到了 类型 8 的 LSA
rack01#sh ipv ospf int s1/1
Serial1/1 is up, line protocol is up
Link Local Address FE80::C800:EFF:FE98:0, Interface ID 6 Area 0, Process ID 100, Instance ID 0, Router ID 1.1.1.1 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:04
Index 1/2/2, flood queue length 0 Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.2.2 Suppress hello for 0 neighbor(s)
%OSPFv3: Router process 1 is not running, please configure a router-id
Page 28 of 39
我们看到了接口的一些信息,他和 IPV4 是一样的,没有什么变化。
Ref-LSID 0 0
实验目的:实验七:OSPF 实验(广播)
OSPF 的实验在 IPV4 中就是一个重点,因为它是链路状态协议的代表,在 IPV6 中有很多配置基本和 IPV4 是一样的,我们对这些命令应该很熟悉。 R1
实验拓扑: R1 R2 F0/0 F0/0 R2 F0/0
Page 29 of 39 F0/0 R3
实验内容:
路由器的基本配置:
R1 上: !
ipv6 unicast-routing !
interface Loopback0
ip address 1.1.1.1 255.255.255.0 ipv6 address 2000::1/64
ipv6 ospf 1 area 0 同时指定区域和进程 !
interface FastEthernet0/0 no ip address duplex half
ipv6 address 2001::1/64 ipv6 ospf 1 area 0
Page 30 of 39 !
ipv6 router ospf 1
log-adjacency-changes
R2 上: !
ipv6 unicast-routing ! !
interface Loopback0
ip address 2.2.2.2 255.255.255.0 ipv6 address 2002::1/64 ipv6 ospf 1 area 0 !
interface FastEthernet0/0 no ip address duplex half
ipv6 address 2001::2/64 ipv6 ospf 1 area 0 !
ipv6 router ospf 1
log-adjacency-changes
R3 上: !
ipv6 unicast-routing !
interface Loopback0
ip address 3.3.3.3 255.255.255.0 ipv6 address 2003::1/64 ipv6 ospf 1 area 0 !
interface FastEthernet0/0 no ip address duplex half
ipv6 address 2001::3/64 ipv6 ospf 1 area 0 !
Page 31 of 39 ipv6 router ospf 1
log-adjacency-changes !