实验三 IPv6静态路由.docx
IPv6静态路由配置实验2022:2:2:22:2/64R1 >F0/02012:1:1:11:2/64说明:配置静态路由,使双方都能ping通互相loopback接口的网段。由于是多路访问接口,所以省去配置直连静态路由的方法。L网络初始配置:(1) RI初始配置: rl(config)#ipv6 unicast-routing rl(config)#int fO/3 rl(config-if)#ipv address 2012:l:l:ll:l/64 rl(config)#int loopback 0rl(config-if)#ipv6 address 2011:l:l:ll:ly64rl(config-if)#(2) R2初始配置:r2(config)#ipv unicast-routingr2(config)#int fO/O r2(config-if)#ipv address 2012:l:l:ll:/64 r2(config)#int loopback 0r2(config-if)#ipv6 address 2022:2:2:22:如4r2(config-if)#2 .在RI上配置递归静态路由(1)配置递归静态路由rl(config)#ipv6 route 2022:2:2:22:由4 2012:1:1:11:2说明:到达目标网络2022:2:2:22:/64的数据包发给下一跳地址2012:1:1:11:2。(2)检查静态路由rlttshow ipv6 route staticIPv6 Routing Table - 7 entriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGPU - Per-user Static route11 - ISIS LI, 12 - ISIS L2, IA - ISIS interarea, IS - ISIS summary0 - OSPF intra, 01- OSPF inter, 0E1 - OSPF ext 1, 0E2 - OSPF ext 2ONI- OSPF NSSA ext 1, 0N2 - OSPF NSSA ext 2D-EIGRP, EX-EIGRP externalS 2022:2:2:22:由4 mvia 2012:l:l:ll:2rl#说明:从结果中看出,手工配置的递归静态路由已生效。(3)测试连通性 rl#ping 2022:2:2:22:2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2022:2:2:22:2 timeout is 2 seconds: muSuccess rate is 100 percent (洞,round-trip min/avg/max = 1 %4140 ms rl#说明:由于正确配置静态路由,R1到R2的loopback接口的网段通信正常。3 .在R2上配置完全静态路由(1)配置完全静态路由r2(config)#ipv6 route 2011:1:1:11:/64 f0/0 2012:1:1:11:1说明:到达目标网络的数据包从接口 F0#发出去,并且交给下一 跳地址 2012:l:l:ll:lo(2)检查静态路由r2#show ipv6 route staticIPv6 Routing Table - 7 entriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGPU - Per-user Static route11 - ISIS LI, 12 - ISIS L2, IA - ISIS interarea, IS - ISIS summary0 - OSPF intra, 01- OSPF inter, 0E1 - OSPF ext 1, 0E2 - OSPF ext 2ONI- OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2D-EIGRP, EX -日GRP externalS 2011:l:l:ll:/64Wvia 2012:l:l:ll:l, FastEthernetO/0r2#说明:从结果中看出,手工配置的完全静态路由已生效。(3)测试连通性r2#ping 2011:1:1:11:1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2011:l:l:ll:l, timeout is 2 seconds:mi *Mar 1 00:36:50.387: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered onFastEthernetO/3 (not full duplex), with Router FastEthernetO/2 (full duplex).!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/92/156 msr2#说明:由于正确配置静态路由,R2到R1的loopback接口的网段通信正常。