实验 2: IPv6 RIPng
1.实验目的
通过本实验可以掌握
(1)启用 IPv6 流量转发
(2)向 RIPng 网络注入默认路由
(3)RIPng 配置和调试
2.拓扑结构
实验拓扑如图 23-2 所示。
图 23-2 IPv6 RIPng 配置
3.实验步骤
(1)步骤 1:配置路由器 R1
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router rip cisco //启动 IPv6 RIPng 进程
R1(config-rtr)#split-horizon //启用水平分割
R1(config-rtr)#poison-reverse //启用毒化反转
R1(config)#interface Loopback0
R1(config-if)#ipv6 address 2006:1111::1/
R1(config-if)#ipv6 rip cisco enable //在接口上启用 RIPng
R1(config)#interface Serial0/0/0
R1(config-if)#ipv6 address 2007:12::1/
R1(config-if)#ipv6 rip cisco enable
R1(config-if)#ipv6 rip cisco default-information originate
//向 IPv6 RIPng 区域注入一条默认路由(::/0)
R1(config-if)#no shutdown
R1(config)#ipv6 route ::/0 Loopback0 //配置默认路由
【提示】
“ipv6 rip cisco default-information only ”命令也可以向 IPv6 RIPng 区域注入一条默认路由,但是该命令只从该接口发送默认的IPv6路由,而该接口其它的IPv6的RIPng路由都被抑制。
(2)步骤 2:配置路由器 R2
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router rip cisco
R2(config-rtr)#split-horizon
R2(config-rtr)#poison-reverse
R2(config)#interface Serial0/0/0
R2(config-if)#ipv6 address 2007:12::2/
R2(config-if)#ipv6 rip cisco enable
R2(config-if)#clock rate 128000
R2(config-if)#no shutdown
R2(config)#interface Serial0/0/1
R2(config-if)#ipv6 address 2007:23::2/
R2(config-if)#ipv6 rip cisco enable
R2(config-if)#clock rate 128000
R2(config-if)#no shutdown
(3)步骤 3:配置路由器 R3
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router rip cisco
R3(config-rtr)#split-horizon
R3(config-rtr)#poison-reverse
R3(config)#interface Serial0/0/0
R3(config-if)#ipv6 address 2007:34::3/
R3(config-if)#ipv6 rip cisco enable
R3(config-if)#clockrate 128000
R3(config-if)#no shutdown
R3(config)#interface Serial0/0/1
R3(config-if)#ipv6 address 2007:23::3/
R3(config-if)#ipv6 rip cisco enable
R3(config-if)#no shutdown
(4)步骤 4:配置路由器 R4
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 router rip cisco
R4(config-rtr)#split-horizon
R4(config-rtr)#poison-reverse
R4(config)#interface Loopback0
R4(config-if)#ipv6 address 2008:4444::4/
R4(config-if)#ipv6 rip cisco enable
R4(config)#interface Serial0/0/0
R4(config-if)#ipv6 address 2007:34::4/
R4(config-if)#ipv6 rip cisco enable
R4(config-if)#no shutdown
4.实验调试
(1)show ipv6 route
R2#show ipv6 route
IPv6 Routing Table – 10 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
R ::/0 [120/2]
via FE80::C800:AFF:FE90:0, Serial0/0/0
R 2006:1111::/ [120/2]
via FE80::C800:AFF:FE90:0, Serial0/0/0
C 2007:12::/ [0/0]
via ::, Serial0/0/0
L 2007:12::2/128 [0/0]
via ::, Serial0/0/0
C 2007:23::/ [0/0]
via ::, Serial0/0/1
L 2007:23::2/128 [0/0]
via ::, Serial0/0/1
R 2007:34::/ [120/2]
via FE80::C802:AFF:FE90:0, Serial0/0/1
R 2008:4444::/ [120/3]
via FE80::C802:AFF:FE90:0, Serial0/0/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
以上输出表明 R1 确实向 IPv6 RIPng 网络注入一条 IPv6 的默认路由,同时收到 3 条
IPv6 RIPng 路由条目,而且所有 IPv6 RIPng 路由条目的下一跳地址均为邻居路由器接口的
“link-local”地址。可以通过“show ipv6 rip next-hops”命令查看 RIPng 的下一跳地
址。
R2#show ipv6 rip next-hops
RIP process \"cisco\
FE80::C800:AFF:FE90:0/Serial0/0/0 [3 paths]
FE80::C802:AFF:FE90:0/Serial0/0/1 [3 paths]
(2)show ip protocols
R2#show ipv6 protocols
IPv6 Routing Protocol is \"connected\"
IPv6 Routing Protocol is \"static\"
IPv6 Routing Protocol is \"rip cisco\"
Interfaces:
Serial0/0/1
Serial0/0/0
Redistribution:
None
以上输出表明启动的 IPv6 RIPng 进程为 cisco,同时在 Serial0/0/1 和 Serial0/0/0
接口上起用 RIPng。
(3)show ipv6 rip database
该命令用来查看 RIPng 的数据库。
R2#show ipv6 rip database
RIP process \"cisco\
2006:1111::/, metric 2, installed
Serial0/0/0/FE80::C800:AFF:FE90:0, expires in 178 secs
2007:12::/, metric 2
Serial0/0/0/FE80::C800:AFF:FE90:0, expires in 178 secs
2007:23::/, metric 2
Serial0/0/1/FE80::C802:AFF:FE90:0, expires in 168 secs
2007:34::/, metric 2, installed
Serial0/0/1/FE80::C802:AFF:FE90:0, expires in 168 secs
2008:4444::/, metric 3, installed
Serial0/0/1/FE80::C802:AFF:FE90:0, expires in 168 secs
::/0, metric 2, installed
Serial0/0/0/FE80::C800:AFF:FE90:0, expires in 178 secs
以上输出显示了 R2 的 RIPng 的数据库。
(4)debug ipv6 rip
该命令用来动态查看 RIPng 的更新。
R2#debug ipv6 rip
RIP Routing Protocol debugging is on
R2#clear ipv6 route *
*Feb 15 14:17:34.851: RIPng: Sending multicast update on Serial0/0/1 for cisco
*Feb 15 14:17:34.851: src=FE80::C801:AFF:FE90:0
*Feb 15 14:17:34.855: dst=FF02::9 (Serial0/0/1)
*Feb 15 14:17:34.855: sport=521, dport=521, length=92
*Feb 15 14:17:34.859: command=2, version=1, mbz=0, #rte=4
*Feb 15 14:17:34.859: tag=0, metric=2, prefix=2006:1111::/
*Feb 15 14:17:34.859: tag=0, metric=1, prefix=2007:12::/
*Feb 15 14:17:34.863: tag=0, metric=1, prefix=2007:23::/
*Feb 15 14:17:34.863: tag=0, metric=2, prefix=::/0
*Feb 15 14:17:34.867: RIPng: Sending multicast update on Serial0/0/0 for cisco
*Feb 15 14:17:34.867: src=FE80::C801:AFF:FE90:0
*Feb 15 14:17:34.871: dst=FF02::9 (Serial0/0/0)
*Feb 15 14:17:34.871: sport=521, dport=521, length=92
*Feb 15 14:17:34.871: command=2, version=1, mbz=0, #rte=4
*Feb 15 14:17:34.875: tag=0, metric=1, prefix=2007:12::/
*Feb 15 14:17:34.875: tag=0, metric=1, prefix=2007:23::/
*Feb 15 14:17:34.879: tag=0, metric=2, prefix=2007:34::/
*Feb 15 14:17:34.879: tag=0, metric=3, prefix=2008:4444::/
*Feb 15 14:17:43.439: RIPng: response received from FE80::C800:AFF:FE90:0 on Serial0/0/0
for cisco
*Feb 15 14:17:43.443: src=FE80::C800:AFF:FE90:0 (Serial0/0/0)
*Feb 15 14:17:43.443: dst=FF02::9
*Feb 15 14:17:43.447: sport=521, dport=521, length=72
*Feb 15 14:17:43.447: command=2, version=1, mbz=0, #rte=3
*Feb 15 14:17:43.447: tag=0, metric=1, prefix=2006:1111::/
*Feb 15 14:17:43.451: tag=0, metric=1, prefix=2007:12::/
*Feb 15 14:17:43.451: tag=0, metric=1, prefix=::/0
R2#
*Feb 15 14:17:57.815: RIPng: response received from FE80::C802:AFF:FE90:0 on Serial0/0/1
for cisco
*Feb 15 14:17:57.819: src=FE80::C802:AFF:FE90:0 (Serial0/0/1)
*Feb 15 14:17:57.819: dst=FF02::9
*Feb 15 14:17:57.823: sport=521, dport=521, length=72
*Feb 15 14:17:57.823: command=2, version=1, mbz=0, #rte=3
*Feb 15 14:17:57.823: tag=0, metric=1, prefix=2007:23::/
*Feb 15 14:17:57.827: tag=0, metric=1, prefix=2007:34::/
*Feb 15 14:17:57.827: tag=0, metric=2, prefix=2008:4444::/
以上输出显示路由器 R2 发送和接收 RIPng 的信息。
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- huatuo8.com 版权所有 湘ICP备2023022238号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务