The display segment-routing prefix mpls forwarding command displays the label forwarding table of Segment Routing.
Parameter | Description | Value |
---|---|---|
flex-algo flexAlgoId |
Specifies the identifier of a flexible algorithm. |
The value is an integer that ranges from 128 to 255. |
ip-prefix ip-prefix |
Displays information about routes with a specified IP prefix. |
The value is in dotted decimal notation. |
mask-length |
Specifies the mask length. |
The value is an integer that ranges from 0 to 32. |
label label |
Specifies the prefix label value. |
The value is an integer that ranges from 0 to 4294967295. |
verbose |
Displays detailed information about the label forwarding table. |
- |
Usage Scenario
To view the label forwarding table of Segment Routing, run the display segment-routing prefix mpls forwarding command. Each entry in the label forwarding table of Segment Routing is mapped to that in the label forwarding table delivered to the FES module.
After the undo segment-routing command is run, all records are deleted.Precautions
If no flexible algorithm is specified, information about the label forwarding table of segment routing is displayed.
If the flexible algorithm ID is not specified, information about label forwarding tables of all flexible segment routing algorithms is displayed.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display segment-routing prefix mpls forwarding flex-algo 128 Segment Routing Prefix MPLS Forwarding Information -------------------------------------------------------------- Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 5.5.5.9/32 16001 3 GE0/1/0.1 172.22.1.2 I&T --- 1500 Active 128 6.6.6.9/32 16003 3 GE0/1/0 172.25.1.2 I&T --- 1500 Active 128 6.6.6.9/32 16003 3 GE0/1/0.2 172.23.1.2 I&T --- 1500 Active 128 1.1.1.9/32 16011 NULL Loop1 127.0.0.1 E --- 1500 Active 128 2.2.2.9/32 16021 3 GE0/1/1 172.16.1.2 I&T --- 1500 Active 128 3.3.3.9/32 16032 16032 GE0/1/1 172.16.1.2 I&T --- 1500 Active 128 Total information(s): 6
<HUAWEI> display segment-routing prefix mpls forwarding verbose Routing Prefix MPLS Forwarding Information -------------------------------------------------------------- Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State ---------------------------------------------------------------------------------------------------------- 1.1.1.1/32 160001 3 GE0/1/0 10.1.1.1 I&T --- 1500 Active 12147(B) GE0/1/8 192.168.1.3 I&T 1400 1500 Inactive Protocol : ISIS SubProtocol : Level-1 Process ID : 100 Cost : 10 Weight : 0 UpdateTime : 2017-1-20 1:52:19.120 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { 3 } Backup UpdateTime: 2017-1-13 12:22:19.514 Backup Label Stack (Top -> Bottom): { 34570, 34571 } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State ---------------------------------------------------------------------------------------------------------- 2.2.2.2/32 160002 NULL Loop1 127.0.0.1 E --- 1500 Active Protocol : ISIS SubProtocol : Level-1 Process ID : 100 Cost : 0 Weight : 0 UpdateTime : 2017-1-20 1:52:30.375 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { } Total information(s): 2
<HUAWEI> display segment-routing prefix mpls forwarding Segment Routing Prefix MPLS Forwarding Information -------------------------------------------------------------- Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State ---------------------------------------------------------------------------------------------------------- 1.1.1.1/32 160001 3 GE0/1/0 10.1.1.1 I&T --- 1500 Active 2.2.2.2/32 160002 NULL Loop1 127.0.0.1 E --- 1500 Active Total information(s): 2
<HUAWEI> display segment-routing prefix mpls forwarding flex-algo Segment Routing Prefix MPLS Forwarding Information -------------------------------------------------------------- Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 5.5.5.9/32 16001 3 GE0/1/0.1 172.22.1.2 I&T --- 1500 Active 128 6.6.6.9/32 16003 3 GE0/1/0 172.25.1.2 I&T --- 1500 Active 128 6.6.6.9/32 16003 3 GE0/1/0.2 172.23.1.2 I&T --- 1500 Active 128 1.1.1.9/32 16011 NULL Loop1 127.0.0.1 E --- 1500 Active 128 2.2.2.9/32 16021 3 GE0/1/1 172.16.1.2 I&T --- 1500 Active 128 3.3.3.9/32 16032 16032 GE0/1/1 172.16.1.2 I&T --- 1500 Active 128 6.6.6.9/32 16004 3 GE0/1/0 172.25.1.2 I&T --- 1500 Active 129 6.6.6.9/32 16004 3 GE0/1/0.2 172.23.1.2 I&T --- 1500 Active 129 1.1.1.9/32 16012 NULL Loop1 127.0.0.1 E --- 1500 Active 129 2.2.2.9/32 16022 3 GE0/1/1 172.16.1.2 I&T --- 1500 Active 129 2.2.2.9/32 16022 3 GE0/1/2 172.18.1.2 I&T --- 1500 Active 129 Total information(s): 11
<HUAWEI> display segment-routing prefix mpls forwarding verbose Segment Routing Prefix MPLS Forwarding Information -------------------------------------------------------------- Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State ----------------------------------------------------------------------------------------------------------------- 1.1.1.1/32 16011 NULL Loop0 127.0.0.1 E --- 1500 Active Protocol : OSPF SubProtocol : - Process ID : 10 Cost : 0 Weight : 0 UpdateTime : 2018-08-02 11:37:48.000 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State ----------------------------------------------------------------------------------------------------------------- 2.2.2.2/32 16021 3 GE0/1/0 192.168.2.2 I&T --- 1500 Active Protocol : OSPF SubProtocol : - Process ID : 10 Cost : 1 Weight : 0 UpdateTime : 2018-08-02 11:38:30.296 BFD State: Up Favor : Y Label Stack (Top -> Bottom): { 3 } Total information(s): 2
<HUAWEI> display segment-routing prefix mpls forwarding flex-algo 128 verbose Segment Routing Prefix MPLS Forwarding Information -------------------------------------------------------------- Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 5.5.5.9/32 16001 3 GE0/1/0.1 172.22.1.2 I&T --- 1500 Active 128 Protocol : ISIS SubProtocol : Level-1 Process ID : 1 Cost : 10 Weight : 0 UpdateTime : 2020-08-18 07:33:14.941 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { 3 } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 6.6.6.9/32 16003 3 GE0/1/0 172.25.1.2 I&T --- 1500 Active 128 Protocol : ISIS SubProtocol : Level-1 Process ID : 1 Cost : 10 Weight : 0 UpdateTime : 2020-08-18 07:33:14.941 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { 3 } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 6.6.6.9/32 16003 3 GE0/1/0.2 172.23.1.2 I&T --- 1500 Active 128 Protocol : ISIS SubProtocol : Level-1 Process ID : 1 Cost : 10 Weight : 0 UpdateTime : 2020-08-18 07:33:14.941 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { 3 } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 1.1.1.9/32 16011 NULL Loop1 127.0.0.1 E --- 1500 Active 128 Protocol : ISIS SubProtocol : Level-1 Process ID : 1 Cost : 0 Weight : 0 UpdateTime : 2020-08-18 07:33:14.941 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 2.2.2.9/32 16021 3 GE0/1/1 172.16.1.2 I&T --- 1500 Active 128 Protocol : ISIS SubProtocol : Level-1 Process ID : 1 Cost : 20 Weight : 0 UpdateTime : 2020-08-18 07:33:14.941 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { 3 } Prefix Label OutLabel Interface NextHop Role MPLSMtu Mtu State Flexalgo ----------------------------------------------------------------------------------------------------------------------- 3.3.3.9/32 16032 16032 GE0/1/1 172.16.1.2 I&T --- 1500 Active 128 Protocol : ISIS SubProtocol : Level-1 Process ID : 1 Cost : 30 Weight : 0 UpdateTime : 2020-08-18 07:33:14.941 BFD State: -- Favor : Y Label Stack (Top -> Bottom): { 16032 } Total information(s): 6
Item | Description |
---|
Item | Description |
---|---|
Prefix | IP prefix value. |
Role | Role of the device in the tunnel.
|
Label | Incoming label. |
Label Stack | Information about a label stack. |
OutLabel | Value of the outgoing label. |
Interface | Outbound interface. |
NextHop | Next-hop address. |
MPLSMtu | MPLS MTU. |
Mtu | MTU. |
State | Prefix label state:
|
Flexalgo | Flexible algorithm. |
Protocol | Protocol information used by SR. |
SubProtocol | Sub-protocol. |
Process ID | Protocol ID. |
Cost | Prefix cost. |
Weight | Weight. |
UpdateTime | Update time. |
BFD State | BFD state. |
Favor | Preferred. |
Backup UpdateTime | Time when the backup label stack was updated. |
Backup Label Stack | Backup label stack. |