< Home

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.

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

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 ipv6-ipv4

    The tunnel mode is set to manual.

  4. Run eth-trunk trunk-id
  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

    The IPv6 function is enabled on the 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 device belongs to.

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