The display ospf segment-routing mapping-server command displays mapping between prefixes and SIDs in an OSPF process.
Parameter | Description | Value |
---|---|---|
process-id |
Specifies the ID of an OSPF process. |
The value is an integer ranging from 1 to 4294967295. |
ip-address |
Specifies the IP address of an interface. |
The value is in dotted decimal notation. |
mask-length |
Specifies a mask length. |
The value is an integer ranging from 0 to 32. |
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. To view mapping between prefixes and SIDs in an OSPF process, run the display ospf segment-routing mapping-server command.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ospf 1 segment-routing mapping-server
OSPF Process 1 with Router ID 2.2.2.2
Mapping-Server Information
Destination AdverRouter Area Sid
-----------------------------------------------------------
6.6.6.6/32 2.2.2.2 0.0.0.0 6
6.6.6.6/32 2.2.2.2 0.0.0.1 6
Item | Description |
---|---|
Destination | Destination prefix. |
AdverRouter | Advertising device. |
Area | OSPF area. |
Sid | SID value. |
MaskLength | Mask length. |