Configuring a Tunnel Interface on the Ingress

A tunnel interface must be created before an MPLS TE tunnel is established on an ingress.

Context

Perform the following steps on the ingress of a static bidirectional co-routed LSP:

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.

  3. To configure an IP address for the tunnel interface, run either of the following commands:

    • To assign an IP address to the tunnel interface, run ip address ip-address { mask | mask-length } [ sub ]

      The primary IP address must be configured prior to the secondary IP address for the tunnel interface.

    • To configure the tunnel interface to borrow the IP address of another interface, run ip address unnumbered interface interface-type interface-number

    Although an IP address on a tunnel interface enables an MPLS TE tunnel to forward traffic, the MPLS TE tunnel does not need to be assigned a separate IP address because it is unidirectional. Therefore, a tunnel interface usually borrows a loopback address, which is used as the LSR ID of the ingress.

  4. Run tunnel-protocol mpls te

    MPLS TE is configured as a tunnel protocol.

  5. Run destination ip-address

    The destination address is configured for the tunnel. It is usually the LSR ID of the egress.

    Various types of tunnels have different requirements for destination addresses. If a tunnel protocol is changed to MPLS TE, the destination address configured using the destination command is automatically deleted and needs to be reconfigured.

  6. Run mpls te tunnel-id tunnel-id

    The tunnel ID is configured.

  7. Run mpls te signal-protocol cr-static

    Static CR-LSP signaling is configured.

  8. Run mpls te bidirectional

    The bidirectional LSP attribute is configured.

  9. Run commit

    The configuration is committed.

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