Source and destination devices of an IPv6 over IPv4 tunnel must have forwarding routes.
Before configuring an IPv6 over IPv4 tunnel, complete the following tasks:
Configure the IPv4/IPv6 dual stack. For details, see Configuring the IPv4/IPv6 Dual Stack.
(Optional) Enable the service loopback function on an Eth-Trunk. For details, see Enabling the Service Loopback Function on an Eth-Trunk.
When configuring an IPv6 over IPv4 GRE tunnel, note 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 specified tunnel source interface is a physical interface.
The following configurations must be performed on devices at both ends of the tunnel.
You need to configure an IPv6 address for the interface that connects a border device to the IPv6 network, and an IPv4 address for the interface that connects a border device to the IPv4 network. You also need to configure a network address for the tunnel interface to support a dynamic routing protocol.
Only the following models support IPv6 over IPv4 GRE tunnels:
S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, S6730S-S
The system view is displayed.
Run interface tunnel interface-number
A tunnel interface is created.
The tunnel mode is set to GRE tunnel.
The interface is added to a specific Eth-Trunk.
Run source { ip-address | interface-type interface-number }
A source address or source interface is specified for 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.
IPv6 is enabled for the tunnel interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
An IPv6 address is configured for the tunnel interface.
The IPv6 address prefix of the specified tunnel interface must be the same as the address prefix of the IPv6 network that the border device belongs to.