The dynamic tunnels are point to multipoint, virtually treating the underlying IPv4 network as NBMA. This is because the destination IPv4 address is dynamically discovered from the destination IPv6 address. Thus if a protocol uses the destination of multicast address, they will get mapped to an IPv4 address which cannot be routed, there by dropped.
Because of this reason we have to trick the protocol to use unicast IPv6 destination addresses. The implementation of this depends on the routing protocol itself. In this blog I will be demonstrating using OSPFv3 over different tunnel types.
In the above topology R2 which will be the hub is configured for following tunneling methods:
- Automatic 6to4 tunneling towards R1.
- ISATAP tunneling towards R3, where it acts as a client.
- ISATAP tunneling towards R4 where both R2 and R4 are servers.
Caveats: The most important point to take into account is the IPv6 address itself. The transport IPv6 destination address will be automatically discovered with help of the IPv6 destination address. So we must make take care that the IPv6 destination could be properly mapped to the IPv4 destination.
R2:interface ethernet0/0ip address 10.0.12.2 255.255.255.0!interface Tunnel12 description Automatic 6to4 Tunnel to R1 ipv6 address 2002:A00:C02::2/64 tunnel source Ethernet0/0 tunnel mode ipv6ip 6to4R1:interface ethernet0/0ip address 10.0.12.1 255.255.255.0!interface Tunnel12 description Automatic 6to4 Tunnel to R2 ipv6 address 2002:A00:C01::1/64 tunnel source Ethernet0/0 tunnel mode ipv6ip 6to4Tunnel configuration between R2 and R3:
R2:interface Ethernet0/1ip address 10.0.23.2 255.255.255.0!interface Tunnel23 description ISATAP Tunnel to R3 ipv6 address 2001:23::/64 eui-64 no ipv6 nd suppress-ra tunnel source Ethernet0/1 tunnel mode ipv6ip isatapR3:interface Ethernet0/0ip address 10.0.23.3 255.255.255.0!interface Tunnel23 description ISATAP Tunnel to R2 ipv6 address autoconfig tunnel source Ethernet0/0 tunnel destination 10.0.23.2 tunnel mode ipv6ipTunnel configuration between R2 and R4:
R2:interface Ethernet0/2ip address 10.0.24.2 255.255.255.0!interface Tunnel24 description Tunnel to R4 ipv6 address 2001:24::/64 eui-64 tunnel source Ethernet0/2 tunnel mode ipv6ip isatapR4:interface Ethernet0/0ip address 10.0.24.4 255.255.255.0!interface Tunnel24 description ISATAP Tunnel to R2 ipv6 address 2001:24::/64 eui-64 tunnel source Ethernet0/0 tunnel mode ipv6ip isatapR2#ping FE80::A00:C01 repeat 1Output Interface: Tunnel 12Type escape sequence to abort.Sending 1, 100-byte ICMP Echos to FE80::A00:C01, timeout is 2 seconds:Packet sent with a source address of FE80::A00:C02IP: s=10.0.12.2 (local), d=0.0.0.0, len 120, unroutable, proto=41.Success rate is 0 percent (0/1)The ping to R1 fails because the destination IPv4 address which maps to 0.0.0.0 (derived from 17-48th bit of IPv6 destination address) is not routable/illegal.
R2#ping FE80::A00:1703 repeat 1Output Interface: Tunnel23Type escape sequence to abort.Sending 1, 100-byte ICMP Echos to FE80::A00:1703, timeout is 2 seconds:Packet sent with a source address of FE80::5EFE:A00:1702!Success rate is 100 percent (1/1), round-trip min/avg/max = 28/28/28 ms
R2#ping FE80::5EFE:A00:1804 repeat 1Output Interface: Tunnel24Type escape sequence to abort.Sending 1, 100-byte ICMP Echos to FE80::5EFE:A00:1804, timeout is 2 seconds:Packet sent with a source address of FE80::5EFE:A00:1802!Success rate is 100 percent (1/1), round-trip min/avg/max = 28/28/28 msPings to R3 and R4 succeeds because the destination IPv4 address is mapped from the last 32 bits of the IPv6 destination address. To resolve the connectivity issue to R1 link local address we change the Link Local address on R2 and R1 to an address which is reachable at IPv4.
R1(config)#interface Tunnel 12R1(config-if)#ipv6 address FE80:A00:C01::1 link-localR2(config)#interface Tunnel 12R2(config-if)#ipv6 address FE80:A00:C02::2 link-localR2#ping FE80:A00:C01::1Output Interface: Tunnel12Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FE80:A00:C01::1, timeout is 2 seconds:Packet sent with a source address of FE80:A00:C02::2!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/20/28 msinterface Tunnel12 ipv6 ospf network non-broadcast ipv6 ospf neighbor FE80:A00:C01::1 ipv6 ospf 1 area 0interface Tunnel23 ipv6 ospf network non-broadcast ipv6 ospf neighbor FE80::5EFE:A00:1703 ipv6 ospf 1 area 0interface Tunnel24 ipv6 ospf network non-broadcast ipv6 ospf neighbor FE80::5EFE:A00:1804 ipv6 ospf 1 area 0R1:interface Tunnel12 ipv6 ospf network non-broadcast ipv6 ospf 1 area 0R3:interface Tunnel23 ipv6 ospf network non-broadcast ipv6 ospf 1 area 0R4:interface Tunnel24 ipv6 ospf network non-broadcast ipv6 ospf 1 area 0
