R1的配置:
Router>en
Router#en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip do lo
Router(config)#line con 0
Router(config-line)#no exec-t
Router(config-line)#logg s
Router(config-line)#ho R1
R1(config)#ipv6 unicast-routing
R1(config-if)#ipv6 address 2006:bbbb::1/64
R1(config-if)#inter lo1
R1(config-if)#ipv6 address 2007:cccc::1/64
R1(config-if)#inter s2/1
R1(config-if)#ipv6 address 2008:dddd::1/64
R1(config-if)#no shut
*Jul 18 20:01:19.879: %LINK-3-UPDOWN: Interface Serial2/1, changed state to up
*Jul 18 20:01:20.887: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up
*Jul 18 20:01:48.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to down
R1(config-if)#exi
*Jul 18 20:04:48.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up
R1(config)#ipv6 rout
R1(config)#ipv6 route 2007:aaaa::2/64 s2/1 //靜態路由
R1(config)#end
R1#show ipv6 rou
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
C 2006:BBBB::/64 [0/0]
via ::, Loopback0
L 2006:BBBB::1/128 [0/0]
S 2007:AAAA::/64 [1/0]
via ::, Serial2/1 靜態路由
C 2007:CCCC::/64 [0/0]
via ::, Loopback1
L 2007:CCCC::1/128 [0/0]
C 2008:DDDD::/64 [0/0]
via ::, Serial2/1
L 2008:DDDD::1/128 [0/0]
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
R1#ping ipv6 2007:AAAA::2 //通了 哈哈哈哈
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2007:AAAA::2, timeout is 2 seconds:
!!!!!
R2的配置:
Router(config-line)#ho R2
R2(config-if)#inter lo1
R2(config-if)#ipv6 address 2005:dddd::1/64
R2(config-if)#inter lo0
R2(config-if)#ipv6 address 2007:aaaa::2/64
R2(config-if)#inter s2/1
R2(config-if)#ipv6 address 2008:dddd::2/64
R2(config-if)#no shut
R2(config-if)#exi
R2(config)#ipv6 route ::/0 s2/1 //預設路由
R2#show ipv6 rout
S ::/0 [1/0]
via ::, Serial2/1 預設路由
C 2005:DDDD::/64 [0/0]
L 2005:DDDD::1/128 [0/0]
C 2007:AAAA::/64 [0/0]
L 2007:AAAA::2/128 [0/0]
L 2008:DDDD::2/128 [0/0]
R1的配置:
Router>en
Router#en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip do lo
Router(config)#line con 0
Router(config-line)#no exec-t
Router(config-line)#logg s
Router(config-line)#ho R1
R1(config)#ipv6 unicast-routing
R1(config-if)#ipv6 address 2006:bbbb::1/64
R1(config-if)#inter lo1
R1(config-if)#ipv6 address 2007:cccc::1/64
R1(config-if)#inter s2/1
R1(config-if)#ipv6 address 2008:dddd::1/64
R1(config-if)#no shut
*Jul 18 20:01:19.879: %LINK-3-UPDOWN: Interface Serial2/1, changed state to up
*Jul 18 20:01:20.887: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up
*Jul 18 20:01:48.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to down
R1(config-if)#exi
*Jul 18 20:04:48.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1, changed state to up
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ipv6 rout
R1(config)#ipv6 route 2007:aaaa::2/64 s2/1 //靜態路由
R1(config)#end
R1#show ipv6 rou
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
C 2006:BBBB::/64 [0/0]
via ::, Loopback0
L 2006:BBBB::1/128 [0/0]
via ::, Loopback0
S 2007:AAAA::/64 [1/0]
via ::, Serial2/1 靜態路由
C 2007:CCCC::/64 [0/0]
via ::, Loopback1
L 2007:CCCC::1/128 [0/0]
via ::, Loopback1
C 2008:DDDD::/64 [0/0]
via ::, Serial2/1
L 2008:DDDD::1/128 [0/0]
via ::, Serial2/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
R1#ping ipv6 2007:AAAA::2 //通了 哈哈哈哈
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2007:AAAA::2, timeout is 2 seconds:
!!!!!
R2的配置:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip do lo
Router(config)#line con 0
Router(config-line)#no exec-t
Router(config-line)#logg s
Router(config-line)#ho R2
R2(config-if)#inter lo1
R2(config-if)#ipv6 address 2005:dddd::1/64
R2(config-if)#inter lo0
R2(config-if)#ipv6 address 2007:aaaa::2/64
R2(config-if)#inter s2/1
R2(config-if)#ipv6 address 2008:dddd::2/64
R2(config-if)#no shut
R2(config-if)#exi
R2(config)#ipv6 route ::/0 s2/1 //預設路由
R2#show ipv6 rout
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
S ::/0 [1/0]
via ::, Serial2/1 預設路由
C 2005:DDDD::/64 [0/0]
via ::, Loopback1
L 2005:DDDD::1/128 [0/0]
via ::, Loopback1
C 2007:AAAA::/64 [0/0]
via ::, Loopback0
L 2007:AAAA::2/128 [0/0]
via ::, Loopback0
C 2008:DDDD::/64 [0/0]
via ::, Serial2/1
L 2008:DDDD::2/128 [0/0]
via ::, Serial2/1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0