Configuring Basic SR-MPLS BE Functions

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

Context

Basic SR-MPLS BE function configurations mainly involve enabling SR globally, specifying an SRGB, and configuring an SR prefix SID.

Procedure

  1. Enable SR globally.
    1. Run system-view

      The system view is displayed.

    2. Run segment-routing

      SR is enabled globally, and the Segment Routing view is displayed.

    3. Run commit

      The configuration is committed.

    4. Run quit

      Return to the system view.

  2. Specify an SRGB.
    1. Run ospf [ process-id ]

      The OSPF view is displayed.

    2. Run opaque-capability enable

      The Opaque LSA capability is enabled.

    3. Run segment-routing mpls

      OSPF SR is enabled.

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

      An OSPF SRGB is specified.

      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.

    5. Run commit

      The configuration is committed.

    6. Run quit

      Return to the system view.

  3. Configure 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 loopback interface.

    5. Run commit

      The configuration is committed.

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