The segment-routing mapping-server command enables a device to advertise or receive SIDs.
The undo segment-routing mapping-server command disables a device from advertising or receiving SIDs.
By default, only the SID receiving capability is enabled.
Parameter | Description | Value |
---|---|---|
send |
Enables a local node to advertise the local SID label mapping messages. The local active prefix SIDs are carried in label mapping messages to be advertised. |
- |
receive |
Enables a local node to receive remote SID label mapping messages. The local node parses SIDs carried in SID label mapping messages sent by a remote label mapping server. |
- |
Usage Scenario
In LDP and SR interworking scenarios, if SR is not supported on the LDP side, run the mapping-server prefix-sid-mapping command on an SR device to map the LDP prefixes to SIDs and advertise the mapping to the SR domain. The segment-routing mapping-server command enables a local device to advertise or receive the SID label mapping.
<HUAWEI> system-view [~HUAWEI] segment-routing [*HUAWEI-segment-routing] quit [*HUAWEI] ospf 1 [*HUAWEI-ospf-1] opaque-capability enable [*HUAWEI-ospf-1] segment-routing mpls [*HUAWEI-ospf-1] segment-routing mapping-server send