Configuring a Tunnel Interface

After creating a tunnel interface, specify IPv6 GRE as the encapsulation type, set the tunnel source address or source interface, and set the tunnel destination address. In addition, set the tunnel interface network address so that the tunnel can support route.

Context

An IPv6 GRE tunnel is established between two tunnel interfaces on two ends of a tunnel. Therefore, you need to configure tunnel interfaces of devices on both ends of the tunnel. Set the protocol type to IPv6 GRE, and specify a source address or interface and a destination address for the tunnel interface. Only tunnel interfaces with network addresses can support routes.

A tunnel interface is a logical interface, and its interface status changes to Down in the following cases:
  • The destination address of the tunnel interface is unreachable or is the same as the address of this interface.

  • The source interface status of the tunnel interface becomes Down.

  • The IP address of the tunnel interface is invalid.

After a tunnel interface is deleted, the interface configurations are also deleted.

Perform the following steps on the routers at the two ends of a tunnel.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface tunnel interface-number

    A tunnel interface is created, and the tunnel interface view is displayed.

    For centralized GRE in which a three-dimensional tunnel interface is used, the slot ID of the tunnel interface must be the same as the slot ID of the tunnel service board on which the tunnel's source interface resides. A slot ID inconsistency causes a failure to establish a GRE tunnel.

  3. Run tunnel-protocol gre ipv6

    The tunnel is encapsulated with IPv6 GRE.

  4. Run source { ipv6-address | ifName | ifTypeifNum }

    The source address or source interface of the tunnel is configured.

    Run the binding tunnel gre command to bind GRE to the source interface or the interface where the source address resides. After the binding, a GRE tunnel can use the interface to forward packets encapsulated by GRE.

  5. Run destination [ vpn-instance vpn-instance-name ] des-ipv6-address

    The destination address of the tunnel is configured.

  6. Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }

    The IPv6 address of the tunnel interface is configured. To support dynamic routing protocols on a tunnel, configure a network address for the tunnel interface. The network address of the tunnel interface may not be a public address, but should be in the same network segment on both ends of the tunnel.

  7. Run commit

    The configuration is committed.

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