display segment-routing state ip-prefix

Function

The display segment-routing state ip-prefix command displays Segment Routing status information based on a specified address prefix.

Format

display segment-routing state ip-prefix ip-prefix mask-length

display segment-routing state ip-prefix ip-prefix mask-length { flex-algo flexAlgoId }

Parameters

Parameter Description Value
ip-prefix

Specifies an IP address prefix.

The value is in dotted decimal notation.

mask-length

Specifies a mask length.

The value is an integer ranging from 0 to 32.

flex-algo flexAlgoId

Specifies the flexible algorithm identifier.

The value is an integer ranging from 128 to 255.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
segr read

Usage Guidelines

Usage Scenario

To view Segment Routing status information based on a specified address prefix, run the display segment-routing state ip-prefix command. The command output helps query the status of key elements used in the establishment of a Segment Routing tunnel based on the specified prefix and mask.

Example

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

# Display segment routing information about flexible algorithm 128 (IS-IS).
<HUAWEI> display segment-routing state ip-prefix 10.3.3.9 32 flex-algo 128

   Segment Routing State IP-Prefix 10.3.3.9 32
-----------------------------------------------------------------
Protocol                                : ISIS-L1
Process ID                              : 1
Prefix-SID                              : 32
Route active state                      : NA
Eligible within process                 : Y
Eligible between processes or protocols : Y
SR nexthop exist                        : Y
Prefix-SID within min SRGB range        : NA
Prefix-SID favor state                  : Y
Flex-Algo                               : 128
# Display Segment Routing status information (OSPF).
<HUAWEI> display segment-routing state ip-prefix 10.3.3.3 32
           Segment Routing State IP-Prefix 10.3.3.3 32
-----------------------------------------------------------------
Protocol                                : OSPF
Process ID                              : 1
Prefix-SID                              : 77
Route active state                      : Y
Eligible within process                 : Y
Eligible between processes or protocols : Y
SR nexthop exist                        : Y
Prefix-SID within min SRGB range        : Y
Prefix-SID favor state                  : N
# Display Segment Routing status information (IS-IS).
<HUAWEI> display segment-routing state ip-prefix 10.7.7.7 32
           Segment Routing State IP-Prefix 10.7.7.7 32          
-----------------------------------------------------------------
Protocol                                : ISIS-L1
Process ID                              : 1
Prefix-SID                              : 77
Route active state                      : Y
Eligible within process                 : Y
Eligible between processes or protocols : Y
SR nexthop exist                        : Y
Prefix-SID within min SRGB range        : Y
Prefix-SID favor state                  : Y

Protocol                                : ISIS-L2
Process ID                              : 1
Prefix-SID                              : 77
Route active state                      : Y
Eligible within process                 : Y
Eligible between processes or protocols : NA
SR nexthop exist                        : N
Prefix-SID within min SRGB range        : Y
Prefix-SID favor state                  : N
Table 1 Description of the display segment-routing state ip-prefix command output
Item Description
Protocol

Protocol.

Process ID

Process ID.

Prefix-SID

Prefix SID.

This is the preferentially selected prefix SID in a process mapped to a specified prefix. If the same prefix and different SIDs are set on different nodes, a process preferentially selects an active SID based on a specified rule.

Prefix-SID within min SRGB range

Whether a prefix SID is within the smallest SRGB scope.

The smallest SRGB scope is determined among all SRGB scopes on all nodes on a whole path including the root node.

Prefix-SID favor state

Whether the prefix SID is preferred.

If the same prefix and different SIDs are set on different nodes, a process preferentially selects an active SID based on a specified rule.

Route active state

Whether a route is active.

If a service component does not obtain the status, NA is displayed, for example, when a prefix SID that NE-B sends to NE-A is out of the local SRGB scope of NE-A.

Eligible within process

Whether a SID is preferentially selected within a process.

  • The value is fixed at Y.
  • The output is empty if no SID information is found based on the specified prefix and mask.
Eligible between processes or protocols

Whether the Segment Routing next hop is preferentially selected within a process or between protocols.

NA indicates that the SEGR does not receive Segment Routing information. The possible cause can be inactive routes or a failure to compute a Segment Routing next hop.

SR nexthop exist

Whether a Segment Routing next hop exists.

Flex-Algo

Flexible Algorithm ID.

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