全部博文(102)
分类: 系统运维
2010-11-15 10:49:26
设备名称 | 接口 | 接口IP | 备注 | |
R1 | Fa0/0 | 2012:1:1:11::1/64 | ||
loopback1 | 3001:1:1:11::1/64 | |||
loopback2 | 3002:1:1:11::1/64 | |||
loopback3 | 3003:1:11:11::1/64 | |||
R2 | Fa0/0 | 2012:1:1:11::2/64 | ||
loopback0 | 2022:2:2:22::2/64 | |||
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
D - EIGRP, EX - EIGRP external
R 2022:2:2:22::/64 [120/2]
via FE80::C200:DFF:FEC4:0, FastEthernet0/0
5.2 查看R2 上的RIPng路由
R2#show ipv6 route rip
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, 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 3001:1:1:11::/64 [120/2]
via FE80::C200:BFF:FE48:0, FastEthernet0/0
5.3 测试连通性质
测试R1到对段链路本地地址的连通性
R1#ping FE80::C200:DEF:FEC4:0
Output Interface: FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::C200:DFF:FEC4:0, timeout is 2 seconds:
Packet sent with a source address of FE80::C200:DFF:FEC4:0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/70/184 ms
测试R1到对端IPv6网络的连通性
R1#ping 2022:2:2:22::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2022:2:2:22::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/75/240 ms
同样可以测试R2
6 重发布IPv6
6.1 将R1中剩余网段重发布到RIPng中
R1中进行再发布工作
R1(config)#route-map conn permit 10
R1(config-route-map)#match interface loopback2
R1(config)#route-map conn permit 20
R1(config-route-map)#match interface loopback3
R1(config)#ipv6 router rip ccie
R1(config)#redistribute connected route-map con
6.2 在R2行查看重发布的RIPng剩余网段
R2#show ipv6 route rip
IPv6 Routing Table - 9 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
D - EIGRP, EX - EIGRP external
R 3001:1:1:11::/64 [120/2]
via FE80::C200:BFF:FE48:0, FastEthernet0/0
R 3002:1:1:11::/64 [120/2]
via FE80::C200:BFF:FE48:0, FastEthernet0/0
R 3003:1:1:11::/64 [120/2]
via FE80::C200:BFF:FE48:0, FastEthernet0/0
7 过滤IPv6路由
在R2中过滤掉不想要的路由,使用distribute-list
7.1 配置只保留3002:1:1:11::/64 网段
R2(config)#ipv6 prefix-list abc permit 3002:1:1:11::/64
R2(config)#ipv6 router rip ccie
R2(config-rtr)#distribute-list prefix-list abc in fa0/0
7.2 查看过滤后的路由结果
R2#show ipv6 route rip
r2#show ipv6 route rip
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, 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 3002:1:1:11::/64 [120/2]
via FE80::C200:BFF:FE48:0, FastEthernet0/0
chinaunix网友2010-11-15 15:16:15
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com