Configuring a Manual IPv6 over IPv4 Tunnel
Context
When configuring a manual IPv6 over IPv4 tunnel, note the following points:
You must create a tunnel interface before setting tunnel parameters.
When the specified tunnel source interface is a physical interface, you are advised to set the tunnel number and the tunnel source interface number to be the same.
The following configurations must be performed on devices at both ends of the tunnel.
To support a dynamic routing protocol, you can configure a network address for the tunnel 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
The tunnel mode is set to manual.
- Run source { ip-address | interface-type interface-number }
A source address or source interface is specified for the tunnel.
You can specify a physical interface or a loopback interface as the source interface of a tunnel. Similarly, you can specify the IP address of a physical interface or loopback interface as the source address of the tunnel. - Run destination dest-ip-address
A destination address is specified for the tunnel.
The destination address of a tunnel can be the IP address of a physical interface or loopback interface.
- 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.