Configuring Basic SR-MPLS TE Functions

This section describes how to configure basic SR-MPLS TE functions.

Context

SR-MPLS TE uses strict and loose explicit paths. Strict explicit paths use adjacency SIDs, and loose explicit paths use adjacency and node SIDs. Before an SR-MPLS TE tunnel is configured, the adjacency and node SIDs must be configured.

Procedure

  1. Configure an SRGB range.
    1. Run system-view

      The system view is displayed.

    2. Run ospf [ process-id ]

      The OSPF view is displayed.

    3. Run opaque-capability enable

      The Opaque LSA capability is enabled.

    4. Run segment-routing mpls

      The OSPF Segment Routing function is enabled.

    5. Run segment-routing global-block begin-value end-value [ ignore-conflict ]

      An OSPF SRGB range is configured.

      If a label in the SRGB range to be specified is in use, you can select the ignore-conflict parameter to allow configuration delivery. However, the configuration does not take effect until the device is restarted and the label is released. In normal cases, specifying ignore-conflict is not recommended.

    6. Run area area-id

      The OSPF area view is displayed.

    7. Run mpls-te enable [ standard-complying ]

      TE is enabled in the OSPF area.

    8. Run commit

      The configuration is committed.

    9. Run quit

      Return to the OSPF view.

    10. Run quit

      Return to the system view.

  2. Set an SR prefix SID.
    1. Run interface loopback loopback-number

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

    2. Run ospf enable [ process-id ] area area-id

      OSPF is enabled on the interface.

    3. Run ip address ip-address { mask | mask-length }

      The IP address is configured for the loopback interface.

    4. Run ospf prefix-sid { absolute sid-value | index index-value } [ node-disable ]

      An SR prefix SID is configured for the IP address of the interface.

    5. Run commit

      The configuration is committed.

    6. Run quit

      Return to the system view.

  3. (Optional) Configure an adjacency SID.

    After OSPF SR is enabled, an adjacency SID is automatically generated. To disable the automatic generation of adjacency SIDs, run the segment-routing auto-adj-sid disable command. The automatically generated adjacency SID may change after a device restart. If an explicit path uses such an adjacency SID and the associated device is restarted, this adjacency SID must be reconfigured. You can also manually configure an adjacency SID to facilitate the use of an explicit path.

    1. Run segment-routing

      The Segment Routing view is displayed.

    2. Run ipv4 adjacency local-ip-addr local-ip-address remote-ip-addr remote-ip-address sid sid-value

      An adjacency SID is manually set for SR.

    3. Run commit

      The configuration is committed.

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