from stretch at packetlife...
http://packetlife.net/blog/2010/mar/15/6to4-ipv6-tunneling/
"6to4 tunneling" is an IPv6 transition mechanism described in RFC 3056.
Like many other transition mechanisms, it enables encapsulation of IPv6
packets into IPv4 for transport across an IPv4 network. What's really
neat about 6to4 is that it allows for automatic IPv6-to-IPv4 address
translation, and treats the underlying IPv4 network as one big
non-broadcast multiaccess (NBMA) network, rather than a collection of
independent point-to-point links.
he said "neat"...
add the other loopbacks...
r1
int lo11
ipv6 add 2002:ac10:0c01:11::1/64
int lo12
ipv6 add 2002:ac10:0c01:12::1/64
r3
int lo31
ipv6 add 2002:ac10:1703:31::1/64
int lo32
ipv6 add 2002:ac10:1703:32::1/64
why does 172.16.12.1 = ac10:0c01
ac = 172 because 10X16 = 160 + 12 = 172
10 = 16 or one 16 in the 16's place holder
0c = 12
01 = 1
for a review of hex go here...
http://insearchofthecert.blogspot.com/2012/04/hex.html
set up the tunnels... pay particular attention to the ipv6 addresses...
r1
int tun0
tunnel mode ipv6ip 6to4
ipv6 add 2002:ac10:0c01:1::1/64
tunnel source serial1/1
exit
turn on v6 routing and a static route for the entire 2002::/16 network...
ipv6 unicast-routing
ipv6 route 2002::/16 tunnel0
r3
int tun0
tunnel mode ipv6ip 6to4
ipv6 add 2002:ac10:1703:1::3/64
tunnel source serial1/2
exit
ipv6 unicast-routing
ipv6 route 2002::/16 tunnel0
foreach address {
2002:ac10:1703:1::3
2002:ac10:1703:31::1
2002:ac10:1703:32::1
2002:ac10:c01:1::1
2002:ac10:c01:11::1
2002:ac10:c01:12::1
} { ping $address }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:AC10:1703:1::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/24 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:AC10:1703:31::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/8/8 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:AC10:1703:32::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/12 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:AC10:C01:1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:AC10:C01:11::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:AC10:C01:12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
add static routes... just like v4...
r1
ipv6 route fec0::3:0/112 2002:ac10:1703:1::3
r3
ipv6 route fec0::1:0/112 2002:ac10:c01:1::1
r3#sh ipv6 route
IPv6 Routing Table - default - 11 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, 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 - LISP
S 2002::/16 [1/0]
via Tunnel0, directly connected
C 2002:AC10:1703:1::/64 [0/0]
via Tunnel0, directly connected
L 2002:AC10:1703:1::3/128 [0/0]
via Tunnel0, receive
C 2002:AC10:1703:31::/64 [0/0]
via Loopback31, directly connected
L 2002:AC10:1703:31::1/128 [0/0]
via Loopback31, receive
C 2002:AC10:1703:32::/64 [0/0]
via Loopback32, directly connected
L 2002:AC10:1703:32::1/128 [0/0]
via Loopback32, receive
S FEC0::1:0/112 [1/0]
via 2002:AC10:C01:1::1
C FEC0::3:0/112 [0/0]
via Loopback0, directly connected
L FEC0::3:1/128 [0/0]
via Loopback0, receive
L FF00::/8 [0/0]
via Null0, receive
r3#
No comments:
Post a Comment