Configuring an Automatic IPv6 over IPv4 Tunnel
Context
When configuring an automatic IPv6 over IPv4 tunnel, pay attention to the following points:
You must create a tunnel interface before setting tunnel parameters.
You are advised to set the tunnel number to be the same as the number of the source physical interface of the tunnel when the source interface of the tunnel is specified as a physical interface.
You only need to specify the source address of the tunnel when an automatic tunnel is configured. The destination address of the tunnel is obtained from the destination address of the original IPv6 packet. In addition, the source addresses of an automatic tunnel must be unique.
Ensure that the IPv6 address configured for the tunnel interface is compatible with an IPv4 address. In the IPv6 address, the high-order 96 bits are all 0s, and last 32 bits are the IPv4 address configured for the IPv4 network-side interface.
Procedure
- Run system-view
The system view is displayed.
- Run interface tunnel interface-number
A tunnel interface is created.
- Run tunnel-protocol ipv6-ipv4 auto-tunnel
The tunnel mode is set to automatic.
- Run source { ip-address | interface-type interface-number }
A source address or source interface is specified for the tunnel.
- Run ipv6 enable
The IPv6 function is enabled on the interface.
- Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
An IPv6 address is configured for the tunnel interface.