display ospf segment-routing mapping-server

Function

The display ospf segment-routing mapping-server command displays mapping between prefixes and SIDs in an OSPF process.

Format

display ospf [ process-id ] segment-routing mapping-server [ ip-address mask-length ]

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ospf read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display mapping between prefixes and SIDs in an OSPF process.
<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
Table 1 Description of the display ospf segment-routing mapping-server command output
Item Description
Destination

Destination prefix.

AdverRouter

Advertising device.

Area

OSPF area.

Sid

SID value.

MaskLength

Mask length.

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