IPv6 over IPv4 tunneling

Implementation

IPv6 over IPv4 tunneling adds an IPv4 header to IPv6 data packets so that IPv6 packets can pass an IPv4 network through a tunnel to realize internetworking between isolated IPv6 networks, as shown in Figure 82. The IPv6 over IPv4 tunnel can be established between two hosts, a host and a device, or two devices. The tunnel destination node can forward IPv6 packets if it is not the destination of the IPv6 packets.

The devices at both ends of an IPv6 over IPv4 tunnel must support the IPv4/IPv6 dual stack.

Figure 82: IPv6 over IPv4 tunnel

The IPv6 over IPv4 tunnel processes packets in the following ways.

  1. A host in the IPv6 network sends an IPv6 packet to Device A at the tunnel source.

  2. After determining from the routing table that the packet needs to be forwarded through the tunnel, Device A encapsulates the IPv6 packet with an IPv4 header and forwards it through the physical interface of the tunnel.

  3. Upon receiving the packet, Device B de-encapsulates the packet.

  4. Device B forwards the packet according to the destination address in the de-encapsulated IPv6 packet. If the destination address is the device itself, Device B forwards the IPv6 packet to the upper-layer protocol for processing.

Tunnel types

Depending on how the IPv4 address of the tunnel destination is acquired, IPv6 over IPv4 tunnels are divided into the following types:

Table 10: IPv6 over IPv4 tunnel modes and key parameters

Tunnel type

Tunnel mode

Tunnel source/destination address

Tunnel interface address type

Manually configured tunnel

IPv6 manual tunneling

The source/destination IP address is a manually configured IPv4 address.

IPv6 address

Automatic tunnel

6to4 tunneling

The source IP address is a manually configured IPv4 address. The destination IP address does not need to be configured.

6to4 address, in the format of 2002:IPv4-source-address::/48

Intra-site automatic tunnel addressing protocol (ISATAP) tunneling

The source IP address is a manually configured IPv4 address. The destination IP address does not need to be configured.

ISATAP address, in the format of Prefix:0:5EFE:IPv4-source-address/64

According to the way an IPv6 packet is encapsulated, IPv6 over IPv4 tunnels are divided into the following modes: