2.1.4 RIPng配置实例
下图为本实例的拓扑结构图:
其具体配置如下:
路由器
R1
配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:1:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
!
interface Ethernet1/0
no ip address
duplex half
ipv6 address 2001:2:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
!
ipv6 router rip ripng
路由器
R2
配置
ipv6 unicast-routing
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:7:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
!
interface Ethernet1/0
no ip address
duplex half
ipv6 address 2001:2:DB2::2/64
ipv6 enable
ipv6 rip ripng enable
!
interface Ethernet1/1
no ip address
duplex half
ipv6 address 2001:3:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
!
interface Serial2/0
no ip address
ipv6 address 2001:4:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
serial restart-delay 0
!
ipv6 router rip ripng
路由器
R3
配置
ipv6 unicast-routing
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:5:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
!
interface Ethernet1/0
no ip address
duplex half
ipv6 address 2001:3:DB2::2/64
ipv6 enable
ipv6 rip ripng enable
!
ipv6 router rip ripng
路由器
R4
配置
ipv6 unicast-routing
interface Loopback0
no ip address
ipv6 address 2001:6:DB2::1/64
ipv6 enable
ipv6 rip ripng enable
!
interface Serial2/0
no ip address
ipv6 address 2001:4:DB2::2/64
ipv6 enable
ipv6 rip ripng enable
serial restart-delay 0
!
!
ipv6 router rip ripng
配置完成后,在路由器
R4
上使用
show ipv6 route
命令查看路由表,如下所示。
R4#sh ipv6 route
IPv6 Routing Table - 11 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
R 2001:1:DB2::/64 [120/3]
via FE80::C800:3FF:FE04:0, Serial2/0
R 2001:2:DB2::/64 [120/2]
via FE80::C800:3FF:FE04:0, Serial2/0
R 2001:3:DB2::/64 [120/2]
via FE80::C800:3FF:FE04:0, Serial2/0
C 2001:4:DB2::/64 [0/0]
via ::, Serial2/0
L 2001:4:DB2::2/128 [0/0]
via ::, Serial2/0
R 2001:5:DB2::/64 [120/3]
via FE80::C800:3FF:FE04:0, Serial2/0
C 2001:6:DB2::/64 [0/0]
via ::, Loopback0
L 2001:6:DB2::1/128 [0/0]
via ::, Loopback0
R 2001:7:DB2::/64 [120/2]
via FE80::C800:3FF:FE04:0, Serial2/0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
使用命令
show ipv6 rip
查看
RIPng
协议的详细信息,如下所示:
R4#sh ipv6 rip
RIP process "ripng", port 521, multicast-group FF02::9, pid 187
Administrative distance is 120. Maximum paths is 16
Updates every 30 seconds, expire after 180
Holddown lasts 0 seconds, garbage collect after 120
Split horizon is on; poison reverse is off
Default routes are not generated
Periodic updates 101, trigger updates 4
Interfaces:
Loopback0
Serial2/0
Redistribution:
None
使用命令
show ipv6 rip database
查看
RIPng
的本地数据库,如下所示:
R4#sh ipv6 rip database
RIP process "ripng", local RIB
2001:1:DB2::/64, metric 3, installed
Serial2/0/FE80::C800:3FF:FE04:0, expires in 167 secs
2001:2:DB2::/64, metric 2, installed
Serial2/0/FE80::C800:3FF:FE04:0, expires in 167 secs
2001:3:DB2::/64, metric 2, installed
Serial2/0/FE80::C800:3FF:FE04:0, expires in 167 secs
2001:4:DB2::/64, metric 2
Serial2/0/FE80::C800:3FF:FE04:0, expires in 167 secs
2001:5:DB2::/64, metric 3, installed
Serial2/0/FE80::C800:3FF:FE04:0, expires in 167 secs
2001:7:DB2::/64, metric 2, installed
Serial2/0/FE80::C800:3FF:FE04:0, expires in 167 secs