Configuring an SR-MPLS TE Tunnel Interface

A tunnel interface must be configured on an ingress so that the interface is used to establish and manage an SR-MPLS TE tunnel.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface tunnel tunnel-number

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

  3. Run either of the following commands to assign an IP address to the tunnel interface:

    • To configure the IP address of the tunnel interface, run the ip address ip-address { mask | mask-length } [ sub ] command.

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

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

    The SR-MPLS TE tunnel is unidirectional and does not need a peer IP address. A separate IP address for the tunnel interface is not recommended. The LSR ID of the ingress is generally used as the tunnel interface's IP address.

  4. Run tunnel-protocol mpls te

    MPLS TE is configured as a tunneling protocol.

  5. Run destination ip-address

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

    Various types of tunnels require specific destination addresses. If a tunnel protocol is changed from another protocol to MPLS TE, a configured destination address is deleted automatically and a new destination address needs to be configured.

  6. Run mpls te tunnel-id tunnel-id

    A tunnel ID is set.

  7. Run mpls te signal-protocol segment-routing

    Segment Routing is configured as the signaling protocol of the TE tunnel.

  8. Run mpls te path explicit-path path-name [ secondary ]

    An explicit path is configured for the tunnel.

    The path-name value must be the same as that specified in the explicit-path path-name command.

  9. (Optional) Run mpls te path verification enable

    Path verification for SR-MPLS TE tunnels is enabled. If a label fails, an LSP using this label is automatically set to Down.

    This function does not need to be configured if the controller or BFD is used.

    To enable this function globally, run the mpls te path verification enable command in the MPLS view.

  10. (Optional) Run match dscp { ipv4 | ipv6 } { default | { dscp-value [ to dscp-value ] } &<1-32> }

    DSCP values are configured for IPv4/IPv6 packets to enter the SR-MPLS TE tunnel.

    The DSCP configuration and mpls te service-class command configuration of an SR-MPLS TE tunnel are mutually exclusive.

  11. Run commit

    The configuration is committed.

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