实验目的:测试纯ipv6的OSPFv3路由协议
实验环境:思科pt5.3的2811路由器
实验拓扑:
实验详细步骤
router0配置
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 100
%OSPFv3-4-NORTRID: OSPFv3 process 100 could not pick a router-id,please configure manually
Router(config-rtr)#router-id 10.1.1.1
Router(config)#int fa0/0
Router(config-if)#no ip address
Router(config-if)#ipv6 address 2010:1111::1/64
Router(config-if)#ipv6 ospf 100 area 0
Router(config-if)#no shutdown
Router(config)#int fa0/0
Router(config-if)#no ip address
Router(config-if)#ipv6 address 2010:1111::1/64
Router(config-if)#ipv6 ospf 100 area 0
Router(config-if)#no shutdown
router1配置
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 100
%OSPFv3-4-NORTRID: OSPFv3 process 100 could not pick a router-id,please configure manually
Router(config-rtr)#router-id 10.1.1.2
Router(config-rtr)#int fa0/0
Router(config-if)#no ip address
Router(config-if)#ipv6 add 2010:1111::2/64
Router(config-if)#ipv6 ospf 100 area 0
Router(config-if)#int fa0/1
Router(config-if)#no ip address
Router(config-if)#ipv6 address 2010:3333::1/64
Router(config-if)#ipv6 ospf 100 area 0
Router(config-if)#no shutdown
实验检查
检查路由协议
Router#show ipv6 route
IPv6 Routing Table - 6 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
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
D - EIGRP, EX - EIGRP external
C 2010:1111::/64 [0/0]
via ::, FastEthernet0/0
L 2010:1111::2/128 [0/0]
via ::, FastEthernet0/0
O 2010:2222::/64 [110/1]
via FE80::201:42FF:FE6A:1D01, FastEthernet0/0
C 2010:3333::/64 [0/0]
via ::, FastEthernet0/1
L 2010:3333::1/128 [0/0]
via ::, FastEthernet0/1
L FF00::/8 [0/0]
via ::, Null0
Router#show ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
10.1.1.1 1 FULL/BDR 00:00:31 1 FastEthernet0/0