61-高级路由:IPv6 RIPng EIGRP OSPF

一、实验拓扑:
61-高级路由:IPv6 RIPng EIGRP OSPF
二、实验要求:
1、R1、R2、R3分别启用IPv6功能,全局开启IPv6路由单播功能;
2、R1、R2直连端口用自动填充配置IPv6地址,R2、R3直连端口采用手动配置IPv6地址;
3、R1、R2、R3部署IPv6环回口1::1/64、2::2/64、3::3/64,并运行RIP协议;
4、全部路由器部署RIPng动态路由;EIGRP动态路由协议;
5、验证:用show ipv6 route 查看路由条目。

三、命令部署:
1、RIP
R1(config)#ipv6 router rip wl //全局下启用RIP协议
R1(config-rtr)#int f0/0
R1(config-if)#ipv6 rip wl enable //接口下启用RIP协议
R1(config)#int lo0
R1(config-if)#ipv6 add 1::1/64
R1(config-if)#ipv6 rip wl enable
R1(config)#ipv6 unicast-routing

R2(config)#ipv6 router rip wl
R2(config)#int f0/0
R2(config-if)#ipv6 rip wl enable
R2(config)#int f1/0
R2(config-if)#ipv6 rip wl enable
R2(config-if)#ipv6 add 2::2/64
R2(config-if)#ipv6 rip wl en
R2(config-if)#ipv6 rip wl enable
R2(config)#ipv6 unicast-routing

R3(config)#ipv6 router rip wl
R3(config)#int f0/0
R3(config-if)#ipv6 rip wl enable
R3(config-if)#int lo0
R3(config-if)#ipv6 add 3::3/64
R3(config-if)#ipv6 rip wl enable
R3(config)#ipv6 unicast-routing
2、EIGRP
R1(config)#ipv6 router eigrp 90
R1(config-rtr)#no shutdown //一定要敲这条命令,因为默认是关闭的
R1(config-rtr)#eigrp router-id 1.1.1.1 //如本地没有配置IPv4的1.1.1.1环回口,该命令一定要部署,不然邻居无法建立

R1(config)#int f0/0
R1(config-if)#ipv6 eigrp 90
R1(config)#int lo0
R1(config-if)#ipv6 eigrp 90

R2(config)#ipv6 router eigrp 90
R2(config-rtr)#no shutdown
R2(config-rtr)#eigrp router-id 2.2.2.2

R2(config)#int f0/0
R2(config-if)#ipv6 eigrp 90
R2(config-if)#int f
R2(config)#int f1/0
R2(config-if)#ipv6 eigrp 90
R2(config)#int lo0
R2(config-if)#ipv6 eigrp 90

R3(config)#ipv6 router eigrp 90
R3(config-rtr)#no shutdown
R3(config-rtr)#eigrp router-id 3.3.3.3

R3(config)#int f0/0
R3(config-if)#ipv6 eigrp 90
R3(config)#int lo0
R3(config-if)#ipv6 eigrp 90
3、OSPF
R1(config)#ipv6 router ospf 110
R1(config-rtr)#router-id 1.1.1.1 //如果没有手动部署IPv4环回口,该命令一定要敲,而且它会提示

R1(config)#int f0/0
R1(config-if)#ipv6 ospf 110 area 0
R1(config)#int lo0
R1(config-if)#ipv6 ospf 110 area 0
R1#show ipv6 ospf neighbor
R1#show ipv6 ospf database

R2(config)#ipv6 router ospf 110
R2(config-rtr)#router-id 2.2.2.2

R2(config)#int f0/0
R2(config-if)#ipv6 ospf 110 area 0
R2(config)#int f1/0
R2(config-if)#ipv6 ospf 110 area 0
R2(config)#int lo0
R2(config-if)#ipv6 ospf 110 area 0
R2(config-if)#int f1/0
R2(config-if)#ipv6 ospf network point-to-point //IPv6也可以修改模式

R3(config)#ipv6 router ospf 110
R3(config-rtr)#router-id 3.3.3.3

R3(config)#int f0/0
R3(config-if)#ipv6 ospf 110 area 0
R3(config)#int lo0
R3(config-if)#ipv6 ospf 110 area 0

R3(config-if)#int f0/0
R3(config-if)#ipv6 ospf network point-to-point

四、验证:
1、RIP
R1#ping 3::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::3, timeout is 2 seconds:!!!!!

R3#show ipv6 route
IPv6 Routing Table - Default - 8 entries
R 1::/64 [120/3]
via FE80::C802:F5FF:FE18:1C, FastEthernet0/0
R 2::/64 [120/2]
via FE80::C802:F5FF:FE18:1C, FastEthernet0/0
C 3::/64 [0/0]
via Loopback0, directly connected
L 3::3/128 [0/0]
via Loopback0, receive
R 2001:12:1:1::/64 [120/2]
via FE80::C802:F5FF:FE18:1C, FastEthernet0/0
C 2001:23:1:1::/64 [0/0]
via FastEthernet0/0, directly connected
L 2001:23:1:1::3/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
2、EIGRP
R1#ping 3::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::3, timeout is 2 seconds:!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/41/56 ms

R3#show ipv6 route
IPv6 Routing Table - Default - 8 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, M - MIPv6, R - RIP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external
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 1::/64 [90/158720]
via FE80::C802:F5FF:FE18:1C, FastEthernet0/0
D 2::/64 [90/156160]
via FE80::C802:F5FF:FE18:1C, FastEthernet0/0
C 3::/64 [0/0]
via Loopback0, directly connected
L 3::3/128 [0/0]
via Loopback0, receive
D 2001:12:1:1::/64 [90/30720]
via FE80::C802:F5FF:FE18:1C, FastEthernet0/0
C 2001:23:1:1::/64 [0/0]
via FastEthernet0/0, directly connected
L 2001:23:1:1::3/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
3、OSPF
R1#ping 3::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::3, timeout is 2 seconds:!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/43/84 ms

R1#show ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/BDR 00:00:31 4 FastEthernet0/0

R1#show ipv6 ospf database

            Link (Type-8) Link States (Area 0)

ADV Router Age Seq# Link ID Interface
1.1.1.1 431 0x80000001 4 Fa0/0
2.2.2.2 331 0x80000001 4 Fa0/0

猜你喜欢

转载自blog.51cto.com/13856092/2138520