20 April 2017

IPv6 over IPv4 Tunneling

Overlay tunneling encapsulates IPv6 packets in IPv4 packets for delivery across an IPv4 infrastructure (a core network or the figure below). By using overlay tunnels, you can communicate with isolated IPv6 networks without upgrading the IPv4 infrastructure between them. Overlay tunnels can be configured between border devices or between a border device and a host; however, both tunnel endpoints must support both the IPv4 and IPv6 protocol stacks. IPv6 supports the following types of overlay tunneling mechanisms:

  • Manual
  • Generic routing encapsulation (GRE)
  • IPv4-compatible
  • 6to4
  • Intrasite Automatic Tunnel Addressing Protocol (ISATAP) 

The config is simple.

R1# show running-config
ip cef
ipv6 unicast-routing
ipv6 cef
interface Loopback0
no ip address
ipv6 address 2001:DB8:1::1/64
ipv6 ospf 1 area 0
interface Tunnel0
no ip address
ipv6 address 2001:DB8:10::1/64
ipv6 ospf 1 area 0
tunnel source Ethernet0/0
tunnel mode ipv6ip
tunnel destination
interface Ethernet0/0
ip address
router ospfv3 1
address-family ipv6 unicast
router bgp 100
bgp router-id
bgp log-neighbor-changes
neighbor remote-as 200
address-family ipv4
network mask
neighbor activate

R3# show ipv6 int brief
Ethernet0/1            [up/up]
Loopback0              [up/up]
Tunnel0                [up/up]

R3# tracer 2001:DB8:1::1
Tracing the route to 2001:DB8:1::1

  1 2001:DB8:10::1 2 msec 2 msec 1 msec

R1# debug ipv6 icmp
*Apr 20 18:04:41.250: ICMPv6: Sent Unreachable code 4, Src=2001:DB8:10::1, Dst=2001:DB8:10::2
*Apr 20 18:04:41.251: ICMPv6: Sent Unreachable code 4, Src=2001:DB8:10::1, Dst=2001:DB8:10::2


No comments: