IPv6 静态路由
版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。 |
![]() r1 配置
router>en
router#conf t router(config)#host r1 r1(config)#no ip domain-lookup r1(config)#ena sec 123 r1(config)#ban mot #Wlecome to r1# r1(config)#line vty 0 4 r1(config-line)#no login r1(config-line)#line con 0 r1(config-line)#no exec-time r1(config-line)#ipv6 unicast-routing r1(config)#ipv6 cef r1(config)#int f 0/0 r1(config-if)#des link to r2 r1(config-if)#ipv6 add fec0:0:0:1::/64 eui-64 r1(config-if)#no shut r1(config-if)#int lo0 r1(config-if)#des test ip r1(config-if)#ipv6 add fec0:0:0:2::1/128 r1(config-if)#exit r1(config)#ipv6 host r2 fec0::1:c800:7ff:fee4:0 r1(config)#ipv6 host r3 fec0::4:c800:5ff:fef8:0 r1(config)#ipv6 route fec0:0:0:3::/64 fec0::1:c800:7ff:fee4:0 r1(config)#ipv6 route fec0:0:0:4::/64 fec0::1:c800:7ff:fee4:0 r1(config)#ipv6 route fec0:0:0:5::/64 fec0::1:c800:7ff:fee4:0 r1(config)#end r1# r2 配置
router>en
router#conf t router(config)#host r2 r2(config)#no ip domain-lookup r2(config)#ena sec 123 r2(config)#ban mot #Wlecome to r2# r2(config)#line vty 0 4 r2(config-line)#no login r2(config-line)#line con 0 r2(config-line)#no exec-time r2(config-line)#ipv6 unicast-routing r2(config)#ipv6 cef r2(config)#int f 0/0 r2(config-if)#des link to r1 r2(config-if)#ipv6 add fec0:0:0:1::/64 eui-64 r2(config-if)#no shut r2(config)#int f 1/0 r2(config-if)#des link to r3 r2(config-if)#ipv6 add fec0:0:0:4::/64 eui-64 r2(config-if)#no shut r2(config-if)#int lo0 r2(config-if)#des test ip r2(config-if)#ipv6 add fec0:0:0:3::1/128 r2(config-if)#exit r2(config)#ipv6 host r1 fec0::1:c800:fff:feb8:0 r2(config)#ipv6 host r3 fec0::4:c800:5ff:fef8:0 r2(config)#ipv6 route fec0:0:0:2::/64 fec0::1:c800:fff:feb8:0 r2(config)#ipv6 route fec0:0:0:5::/64 fec0::4:c800:5ff:fef8:0 r2(config)#end r2# r3 配置
router>en
router#conf t router(config)#host r3 r3(config)#no ip domain-lookup r3(config)#ena sec 123 r3(config)#ban mot #Wlecome to r3# r3(config)#line vty 0 4 r3(config-line)#no login r3(config-line)#line con 0 r3(config-line)#no exec-time r3(config-line)#ipv6 unicast-routing r3(config)#ipv6 cef r3(config)#int f 0/0 r3(config-if)#des link to r2 r3(config-if)#ipv6 add fec0:0:0:4::/64 eui-64 r3(config-if)#no shut r3(config-if)#int lo0 r3(config-if)#des test ip r3(config-if)#ipv6 add fec0:0:0:5::1/128 r3(config-if)#exit r3(config)#ipv6 host r1 fec0::1:c800:fff:feb8:0 r3(config)#ipv6 host r2 fec0::1:c800:7ff:fee4:1c r3(config)#ipv6 route fec0:0:0:1::/64 fec0::1:c800:7ff:fee4:1c r3(config)#ipv6 route fec0:0:0:2::/64 fec0::1:c800:7ff:fee4:1c r3(config)#ipv6 route fec0:0:0:3::/64 fec0::1:c800:7ff:fee4:1c r3(config)#end r3# Welcome to r1
r1>en Password: r1#show run Building configuration... Current configuration : 980 bytes
! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname r1 ! boot-start-marker boot-end-marker ! enable secret 5 $1$GTQr$rp5IKFjj9ubHbDr6dz4E20 ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip cef ipv6 unicast-routing ipv6 host r3 FEC0::4:C800:5FF:FEF8:0 ipv6 host r2 FEC0::1:C800:7FF:FEE4:0 ipv6 cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 description test ip no ip address ipv6 address FEC0:0:0:2::1/128 ! interface FastEthernet0/0 description link to r2 no ip address duplex half ipv6 address FEC0:0:0:1::/64 eui-64 ! ip classless no ip http server ! ! ipv6 route FEC0:0:0:3::/64 FEC0::1:C800:7FF:FEE4:0 ipv6 route FEC0:0:0:4::/64 FEC0::1:C800:7FF:FEE4:0 ipv6 route FEC0:0:0:5::/64 FEC0::1:C800:7FF:FEE4:0 ! ! ! ! ! ! ! gatekeeper shutdown ! banner motd ^CWelcome to r1^C ! line con 0 exec-timeout 0 0 stopbits 1 line aux 0 stopbits 1 line vty 0 4 no login ! ! end r1#show ipv6 route
IPv6 Routing Table - 8 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 L FE80::/10 [0/0] via ::, Null0 C FEC0:0:0:1::/64 [0/0] via ::, FastEthernet0/0 L FEC0::1:C800:FFF:FEB8:0/128 [0/0] via ::, FastEthernet0/0 LC FEC0:0:0:2::1/128 [0/0] via ::, Loopback0 S FEC0:0:0:3::/64 [1/0] via FEC0::1:C800:7FF:FEE4:0 S FEC0:0:0:4::/64 [1/0] via FEC0::1:C800:7FF:FEE4:0 S FEC0:0:0:5::/64 [1/0] via FEC0::1:C800:7FF:FEE4:0 L FF00::/8 [0/0] via ::, Null0 r1#telnet r2 Trying r2 (FEC0::1:C800:7FF:FEE4:0)... Open Welcome to r2 r2>en Password: r2#show run Building configuration... Current configuration : 1046 bytes
! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname r2 ! boot-start-marker boot-end-marker ! enable secret 5 $1$YOHI$n6aRmDXqA6fkE9yxIwPfA1 ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip cef ipv6 unicast-routing ipv6 host r1 FEC0::1:C800:FFF:FEB8:0 ipv6 host r3 FEC0::4:C800:5FF:FEF8:0 ipv6 cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 description test ip no ip address ipv6 address FEC0:0:0:3::1/128 ! interface FastEthernet0/0 description link to r1 no ip address duplex half ipv6 address FEC0:0:0:1::/64 eui-64 ! interface FastEthernet1/0 description link to r3 no ip address duplex half ipv6 address FEC0:0:0:4::/64 eui-64 ! ip classless no ip http server ! ! ipv6 route FEC0:0:0:2::/64 FEC0::1:C800:FFF:FEB8:0 ipv6 route FEC0:0:0:5::/64 FEC0::4:C800:5FF:FEF8:0 ! ! ! ! ! ! ! gatekeeper shutdown ! banner motd ^CWelcome to r2^C ! line con 0 exec-timeout 0 0 stopbits 1 line aux 0 stopbits 1 line vty 0 4 no login ! ! end r2#show ipv6 route
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 L FE80::/10 [0/0] via ::, Null0 C FEC0:0:0:1::/64 [0/0] via ::, FastEthernet0/0 L FEC0::1:C800:7FF:FEE4:0/128 [0/0] via ::, FastEthernet0/0 S FEC0:0:0:2::/64 [1/0] via FEC0::1:C800:FFF:FEB8:0 LC FEC0:0:0:3::1/128 [0/0] via ::, Loopback0 C FEC0:0:0:4::/64 [0/0] via ::, FastEthernet1/0 L FEC0::4:C800:7FF:FEE4:1C/128 [0/0] via ::, FastEthernet1/0 S FEC0:0:0:5::/64 [1/0] via FEC0::4:C800:5FF:FEF8:0 L FF00::/8 [0/0] via ::, Null0 r2#telnet r3 Trying r3 (FEC0::4:C800:5FF:FEF8:0)... Open Welcome to r3 r3>en Password: r3#show run Building configuration... Current configuration : 984 bytes
! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname r3 ! boot-start-marker boot-end-marker ! enable secret 5 $1$1AX.$pCFQrH5Er8B6ThYgOTdb40 ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip cef ipv6 unicast-routing ipv6 host r1 FEC0::1:C800:FFF:FEB8:0 ipv6 host r2 FEC0::1:C800:7FF:FEE4:1C ipv6 cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 description test ip no ip address ipv6 address FEC0:0:0:5::1/128 ! interface FastEthernet0/0 description link to r2 no ip address duplex half ipv6 address FEC0:0:0:4::/64 eui-64 ! ip classless no ip http server ! ! ipv6 route FEC0:0:0:1::/64 FEC0::4:C800:7FF:FEE4:1C ipv6 route FEC0:0:0:2::/64 FEC0::4:C800:7FF:FEE4:1C ipv6 route FEC0:0:0:3::/64 FEC0::4:C800:7FF:FEE4:1C ! ! ! ! ! ! ! gatekeeper shutdown ! banner motd ^CWelcome to r3^C ! line con 0 exec-timeout 0 0 stopbits 1 line aux 0 stopbits 1 line vty 0 4 no login ! ! end r3#show ipv6 route
IPv6 Routing Table - 8 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 L FE80::/10 [0/0] via ::, Null0 S FEC0:0:0:1::/64 [1/0] via FEC0::4:C800:7FF:FEE4:1C S FEC0:0:0:2::/64 [1/0] via FEC0::4:C800:7FF:FEE4:1C S FEC0:0:0:3::/64 [1/0] via FEC0::4:C800:7FF:FEE4:1C C FEC0:0:0:4::/64 [0/0] via ::, FastEthernet0/0 L FEC0::4:C800:5FF:FEF8:0/128 [0/0] via ::, FastEthernet0/0 LC FEC0:0:0:5::1/128 [0/0] via ::, Loopback0 L FF00::/8 [0/0] via ::, Null0 r3#ping ipv6 r1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FEC0::1:C800:FFF:FEB8:0, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 68/111/188 ms r3#ping ipv6 fec0:0:0:2::1 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FEC0:0:0:2::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/103/140 ms r3#ping ipv6 fec0:0:0:3::1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to FEC0:0:0:3::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 20/70/100 ms r3# 本文出自 “人类一思考,上帝都发笑” 博客,转载请与作者联系! 本文出自 51CTO.COM技术博客 |




7layer
博客统计信息
热门文章
最新评论
友情链接