Configure an IPv6 over IPv4 GRE Tunnel
Prerequisites
Source and destination devices of an IPv6 over IPv4 tunnel must have forwarding routes.
Pre-configuration Tasks
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 (Optional) Enabling the Service Loopback Function on an Eth-Trunk.
Context
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.
ES0D0G24SA00 card and ES0D0G24CA00 card do not support GRE.
Procedure
Run system-view
The system view is displayed.
Run interface tunnel interface-number
A tunnel interface is created.
Run tunnel-protocol GRE
The tunnel mode is set to GRE tunnel.
(Optional) Run eth-trunk trunk-id
The interface is added to a specific Eth-Trunk.
For the cards that support internal loopback interfaces, the step is optional. For details, see (Optional) Enabling the Service Loopback Function on an 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.
Run ipv6 enable
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.