实验24 IPv6 RIPng
一、实验拓扑图,如图1.1所示:
图1.1 RIPng实验拓扑图
二、实验说明:
1.本实验是在IPv6基础配置实验基础上做的;
2.实验拓扑图如上图所示;
3.通过再路由器上配置RIPng使路由器可以互通。
三、预配置:(同IPv6基础配置实验具体配置)
四、配置及调试过程:
1.在路由器上启用IPv6 RIPng进程:
R1(config)#ipv6 router rip ccnp//启用RIPng进程,并配置进程标识符
R2(config)#ipv6 router rip ccnp
2.在接口上启用RIPng:
R1(config-rtr)#int lo 0
R1(config-if)#ipv6 rip ccnp enable //在接口上启用已配置的ccnp rip进程
R1(config-if)#int f0/0
R1(config-if)#ipv rip ccnp enable
R2(config-rtr)#int lo 0
R2(config-if)#ipv6 rip ccnp enable
R2(config-if)#int f0/0
R2(config-if)#ipv rip ccnp enable
3.查看路由表:
//查看R1的IPv6路由表
R1(config)#do sh ipv6 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
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
C 1::/64 [0/0]
via ::, Loopback0
L 1::1/128 [0/0]
via ::, Loopback0
R 2::/64 [120/2]
via FE80::CE01:6FF:FEE4:0, FastEthernet0/0
C 2001::/64 [0/0]
via ::, FastEthernet0/0
L 2001::1/128 [0/0]
via ::, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
//查看R2的IPv6路由表
R2(config-if)#do sh ipv6 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
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 R 1::/64 [120/2]
via FE80::CE00:6FF:FEE4:0, FastEthernet0/0
C 2::/64 [0/0]
via ::, Loopback0
L 2::2/128 [0/0]
via ::, Loopback0
C 2001::/64 [0/0]
via ::, FastEthernet0/0
L 2001::2/128 [0/0]
via ::, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
4.查看IPv6 RIP数据库:
R1(config)#do sh ipv6 rip data
RIP process "ccnp", local RIB
2::/64, metric 2, installed
FastEthernet0/0/FE80::CE01:6FF:FEE4:0, expires in 177 secs 2001::/64, metric 2
FastEthernet0/0/FE80::CE01:6FF:FEE4:0, expires in 177 secs
R2(config-if)#do sh ipv6 rip da
RIP process "ccnp", local RIB
1::/64, metric 2, installed
FastEthernet0/0/FE80::CE00:6FF:FEE4:0, expires in 166 secs
2001::/64, metric 2
FastEthernet0/0/FE80::CE00:6FF:FEE4:0, expires in 166 secs
5.查看IPv6 RIPng下一跳地址:
R2(config-if)#do sh ipv6 rip next-hop
RIP process "ccnp", Next Hops
FE80::CE00:6FF:FEE4:0/FastEthernet0/0 [2 paths] //是接口的Link-local地址
6.查看IPv6下所启用的协议:
R2(config-if)#do sh ipv6 pro
IPv6 Routing Protocol is "connected"
IPv6 Routing Protocol is "static"
IPv6 Routing Protocol is "rip ccnp"
Interfaces:
FastEthernet0/0
Loopback0
Redistribution:
None
本实验与ipv4下的rip原理基本相同,在配置IPV6 RIPng的时候,需要给RIP进程命名,然后再在接口上启用命名的RIP进程,类似于IPv4中的宣告网络或者说激活接口。在RIPng 里面又添加了几个新的show命令,可以灵活使用。