A 6to4 tunnel connects multiple IPv6 islands over IPv4 networks. Similar to the IPv6 over IPv4 automatic tunnel, the 6to4 tunnel requires only the source. The tunnel destination is automatically generated by the device. The 6to4 tunnel requires 6to4 addresses.
6to4 network
It is a special IPv6 network. The 6to4 network uses 6to4 addresses within the network and consists of at least one 6to4 host and one 6to4 routing device.
Native IPv6 network
Hosts and routing devices on the network are not assigned 6to4 addresses.
6to4 routing device
It is a border device between the 6to4 network and the IPv4 network.
6to4 relay routing device
It is a boarder device between the 6to4 network and the native IPv6 network.
6to4 address
It is an IPv6 address with the 6to4 prefix.
The format of the 6to4 address is as follows:
As shown in Figure 1, the 6to4 address is expressed as 2002::/16, and a 6to4 network is expressed as 2002:IPv4 address::/48. The IPv4 address embedded in the IPv6 address is used to search for the destination of the 6to4 tunnel. The network prefix of a 6to4 address has 64 bits. The first 48 bits (2002:a.b.c.d) are decided by the IPv4 address of the routing device and cannot be changed. The last 16 bits are specified by users. In this manner, the border routing device can be connected to a set of networks with different network prefixes. Therefore, the 6to4 tunnel can be connected to IPv6 networks and delivers easy maintenance.
6to4 tunnels connect IPv6 islands over the IPv4 network. The 6to4 tunnel is implemented through the tunnel interface. The source IPv4 address of the tunnel is specified manually, and its destination IP address is determined by the packet forwarded by the tunnel. If the destination IP address of an IPv6 packet is a 6to4 address, the embedded IPv4 address serves as the destination address.
As shown in Figure 2, when host A connects to host B, the processing procedures are as follows:
The preceding procedures enforce the communication between 6to4 networks. To enable the communication between a 6to4 network and a native IPv6 network, deploy a 6to4 relay routing device, which serves as a gateway in between. The 6to4 relay routing device connects to the native IPv6 network and the IPv4 network, and establishes a 6to4 tunnel with the 6to4 routing device.
As shown in Figure 3, when host A connects to host B, the processing procedures are as follows: