< Home

Configuring an MPLS TE Tunnel Interface

Context

Before setting up an MPLS TE Tunnel, you must create a tunnel interface and configure other tunnel attributes on the tunnel interface. An MPLS TE tunnel interface is responsible for establishing an MPLS TE tunnel and managing packet forwarding on the tunnel.

Because the type of the packet forwarded by the MPLS TE tunnel is MPLS, the commands, such as the ip verify source-address and urpf commands, related to IP packet forwarding configured on this interface are invalid.

Perform the following configurations on the ingress node of an MPLS TE 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.

  3. To configure the IP address of the tunnel interface, select one of the following commands.

    • Run ip address ip-address { mask | mask-length } [ sub ]

      The IP address of the tunnel interface is configured.

      The secondary IP address of the tunnel interface can be configured only after the primary IP address is configured.

    • Or run ip address unnumbered interface interface-type interface-number

      The tunnel interface is configured to borrow an IP address from other interfaces.

    An MPLS TE tunnel can be established even if the tunnel interface is assigned no IP address. The tunnel interface must obtain an IP address before forwarding traffic. An MPLS TE tunnel is unidirectional and does not need to configure a separate IP address for the tunnel interface. Generally, a loopback interface is created on the ingress node and a 32-bit address that is the same as the LSR ID is assigned to the loopback interface. Then the tunnel interface borrows the IP address of the loopback interface.

  4. Run tunnel-protocol mpls te

    MPLS TE is configured as a tunnel protocol.

  5. Run destination dest-ip-address

    The destination address of the tunnel is configured, which is usually the LSR ID of the egress node.

    Different types of tunnels need different destination addresses. When the tunnel protocol is changed to MPLS TE from other protocols, the configured destination address is deleted automatically and you need to configure an address again.

  6. Run mpls te tunnel-id tunnel-id

    The tunnel ID is configured.

  7. Run mpls te signal-protocol cr-static

    The signal protocol of the tunnel is configured to be static CR-LSP.

  8. (Optional) Run mpls te signalled tunnel-name tunnel-name

    The tunnel name is specified.

    By default, the tunnel interface name such as Tunnel1 is used as the name of the TE tunnel.

  9. Run mpls te commit

    The current tunnel configuration is committed.

    If MPLS TE parameters on a tunnel interface are modified, run the mpls te commit command to activate them.

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