实验验证及调试:
(1)show ipv6 route 查看路由表中所有的路由条目
R1#show ipv6 route
IPv6 Routing Table - 6 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
S ::/0 [1/0]
via DEA1:1888::2, FastEthernet0/0
S AFEC:1988::/64 [1/0]
via ::, FastEthernet0/0
via DEA1:1888::2, FastEthernet0/0
C DEA1:1888::/64 [0/0]
via ::, FastEthernet0/0
L DEA1:1888::1/128 [0/0]
via ::, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
表明R1 中有两条静态的路由条目,和属于直连的网段DEA1:1888::/64以及可以通过FastEthernet0/0端口到达网段AFEC:1988::/64。路由表中没有的路由条目可以从下一条地址DEA1:1888::2路由出去。
(2)ping ipv6 命令测试网络的连通性
R1#ping ipv6 afec:1988::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to AFEC:1988::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/156/248 ms
通过ping ipv6 afec:1988::1表明路由器R1和R3可以相互通信,保证了内部通信。
R1#ping ipv6 7311:1235:12::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7311:1235:12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/156/248 ms
通过ping ipv6 7311:1235:12::1表明路由器R1可以和外部路由通信
(3)show ipv6 route static查看路由表中静态的IPv6路由条目
R1#show ipv6 route static
IPv6 Routing Table - 6 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
S ::/0 [1/0]
via DEA1:1888::2, FastEthernet0/0
S AFEC:1988::/64 [1/0]
via ::, FastEthernet0/0
via DEA1:1888::2, FastEthernet0/0
表明路由器R1有两条静态路由,不会显示非静态路由条目。
5.4 IPv6 RIPng 配置实例
在Cisco IOS 软件技术中,支持的第一个IGP是RIPng。Cisco IOS 软件技术最多同时支持4个RIPng进程。Ipv6 router rip 命令在路由上定义一个RIPng 进程,这是用来启用RIPng进程的第一步。tag 参数指标识某个特定RIPng进程的一个短字符串。Ipv6 router rip 命令等同于IPv4中的router rip 命令。这个命令的语法如下:
Router (config)# ipv6 router rip tag
实验介绍:R1、R2、R3、R4是IPv6区域内的路由器,彼此通过串口连接,现要求通过配置RIPng使 R1、R2、R3、R4可以相互PING通,并学习到路由条目。
图5-2 IPv6 RIPng 配置R1、R2、R3、R4处于IPv6的环境中
实验步骤:
(1)配置路由器R1
R1#conf t
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router rip cisco //在ipv6网络中启用rip协议,rip进程的标示为cisco
R1(config-rtr)#split-horizon //开启rip协议的水平分割功能
R1(config-rtr)#poison-reverse //开启rip协议的毒性逆转弄能
R1(config)#interface loopback0
R1(config-if)#ipv6 address 2006:1111::1/64 //配置ipv6地址
R1(config-if)#ipv6 rip cisco enable //在端口上宣告rip协议
R1(config)#interface serial 0/0
R1(config-if)#ipv6 address 2007:12::1/64
R1(config-if)#ipv6 rip cisco enable
R1(config-if)#ipv6 rip cisco default-intformation originate //向rip的区域内注入一条默认的路由
R1(config-if)#no shutdown
R1(config)#ipv6 route ::/0 loopback0 //用静态路由配置默认路由
(2) 配置路由器R2
R2#conf t
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
R2(config-if)#ipv6 address 2007:12::2/64
R2(config-if)#ipv6 rip cisco enable
R2(config-if)#clock rate 128000 //配置时钟赔率
www.751com.cn
R2(config-if)#no shutdown
(3) 配置路由器 R3
R3#conf t
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
R3(config-if)#ipv6 address 2007:34::3/64
R3(config-if)#ipv6 rip cisco enable
R3(config-if)#clock rate 128000
R3(config-if)#no shutdown
R3(config)#interface serial0/1
R3(config-if)#ipv6 address 2007:23::3/64
R3(config-if)#ipv6 rip cisco enable
R3(config-if)#no shutdown
(4)配置路由器R4
R4#conf t
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/64
R4(config-if)#ipv6 rip cisco enable
R4(config)#interface serial0/0
R4(config-if)#ipv6 address 2007:34::4/64
R4(config-if)#ipv6 rip cisco enable
R4(config-if)#no shutdown
实验调试:
(1)ping ipv6 命令测试网络的连通性
R4#ping ipv6 2006:1111::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2006:1111::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/156/248 ms
通过ping ipv6 2006:1111::1表明路由器R4可以和路由器R1相互通信
(2)show ipv6 route rip 查看路由表中学习到的rip协议路由条目
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页