< Home

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:

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.

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

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface tunnel interface-number

    A tunnel interface is created.

  3. Run tunnel-protocol GRE

    The tunnel mode is set to GRE tunnel.

  4. Run eth-trunk trunk-id

    The interface is added to a specific Eth-Trunk.

  5. Run source { ip-address | interface-type interface-number }

    A source address or source interface is specified for the tunnel.

  6. 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.

  7. Run ipv6 enable

    IPv6 is enabled for the tunnel interface.

  8. 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >