IPv6 over IPv4 automatic tunnel configuration

To configure an IPv6 over IPv4 automatic tunnel, perform the following steps:
1. Run the system-view command to enter the system view.
2. Run the interface tunnel interface-number command to create a tunnel interface and enter the tunnel interface view.
3. Run the tunnel-protocol ipv6-ipv4 auto-tunnel command to set the tunnel encapsulation type to automatic tunnel.
4. Run the source { ipv4-address | interface-type interface-number } command to specify the source address or source interface of the automatic tunnel.
?You can directly specify the IPv4 address of the interface used to connect to the IPv4 network as the source address or specify this interface as the source interface.
?You can specify a physical port or a logical interface such as the Loopback interface as the source interface of the tunnel.
?Source addresses or source interfaces of different IPv6 over IPv4 automatic tunnels must be different.
5. Run the ipv6 enable command to enable the IPv6 function on the tunnel interface.
6. Run the ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } command to set the tunnel interface address to an IPv6 address that is compatible with IPv4.
The IPv6 address configured for the tunnel interface must be compatible with IPv4; that is, the most significant 96 bits are 0s, and the least significant 32 bits are the source address of the automatic tunnel or the IPv4 address of the source interface. The format is ::ipv4-address. As shown in Figure 1, the source address of the automatic tunnel of FW_A is, and the IPv6 address of the tunnel interface is ::

Scroll to top