Friday, April 24, 2015

ipv4 over ipv6

I will use the next topology created using gns3.

First, interfaces and OSPFv3 need to be configured. What is really good about IPv6 that you don't have to configure all the addresses by hand. All you need to do is to enable it on any interface and it will use link-local address. Like this:

int Fa0/0
  ipv6 enable
  ipv6 ospf 1 area 0
!

This configuration is enough for OSPFv3 to form adjacency. However to build a tunnel it is better to have a couple of persistent addresses. I used addresses 1::1/128 and 3::3/128 for loopback interfaces on routers R1 and R3 respectfully. Next step is to configure tunnel itself:

interface Tunnel0
  ip address 10.10.10.1 255.255.255.0
  ip ospf 2 area 0
  tunnel source Loopback0
  tunnel destination 3::3
  tunnel mode ipv6
end

This is configuration of R1 tunnel interface, on R3 it is basically the same. Here we have some options about packet encapsulation:

tunnel mode ipv6
uses "Generic packet tunneling in IPv6", which means that IPv4 is simply enveloped in IPv6. Here is a screenshot of ICMP packet delivered through the tunnel:

tunnel mode gre ipv6
is another possible option, which uses GRE encapsulation between IPv4 and IPv6 headers. It can be seen on another captured packet:

No comments:

Post a Comment