The display mpls lsp command displays information about the LDP protocol and the label switching router (LSR).
display mpls lsp
display mpls lsp [ [ vpn-instance vpn-instance-name ] [ ipv4-family | ipv6-family ] [ protocol { bgp | bgp-ipv6 | static } ] | asbr ] [ { exclude | include } ip-address mask-length ] [ incoming-interface interface-type1 interface-number1 ] [ outgoing-interface interface-type2 interface-number2 ] [ in-label in-label-value ] [ out-label out-label-value ] [ nexthop ip-address ] [ lsr-role { egress | ingress | transit } ] [ verbose ]
display mpls lsp [ [ vpn-instance vpn-instance-name ] [ ipv4-family | ipv6-family ] [ protocol ldp ] | asbr ] [ { exclude | include } ip-address mask-length ] [ outgoing-interface interface-type interface-number ] [ in-label in-label-value ] [ out-label out-label-value ] [ nexthop ip-address ] [ lsr-role { egress | ingress | transit } ] [ verbose ]
| Parameter | Description | Value |
|---|---|---|
| vpn-instance vpn-instance-name | Displays detailed configurations of LSPs of a specified VPN instance. | The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
| ipv4-family | Indicates the IPv4 unicast address-family. | - |
| ipv6-family | Indicates the IPv6 unicast address-family. | - |
| protocol | Displays information about LSPs of a specified type. | - |
| asbr | Displays information about LSPs of a specified ASBR. | - |
| exclude | Displays information about LSPs, excluding information about the specific Forwarding Equivalence Class (FEC). | - |
| include | Displays information about LSPs, including information about the specific FEC. | - |
| ip-address | Displays information about LSPs of a specified IPv4 address or a specified IPv6 address. | - |
| mask-length | Specifies the mask length of the specified IPv4 address or a specified IPv6 address. | An integer ranging from 0 to 32. Alternatively, it specifies the mask length of the specified IPv6 address. The value is an integer ranging from 0 to 128. |
| incoming-interface | Displays information about LSPs of a specified incoming interface. | - |
| interface-type1 interface-number1 | Specifies the type and number of an incoming interface. If the parameter is specified, the LSP configurations of a specified interface are displayed. | - |
| interface-type2 interface-number2 | Specifies the type and number of an outgoing interface. If the parameter is specified, the LSP configurations of a specified interface are displayed. | - |
| outgoing-interface | Displays information about LSPs of a specified outgoing interface. | - |
| in-label in-label-value | Displays information about LSPs of a specified incoming label. | An integer ranging from 0 to 1048575 |
| out-label out-label-value | Displays information about LSPs of a specified outgoing label. | An integer ranging from 0 to 1048575 |
| nexthop ip-address | Displays information about LSPs of a specified IPv4 or IPv6 next hop address. | - |
| egress | Displays information about LSPs of an egress LSR. | - |
| ingress | Displays information about LSPs of an ingress LSR. | - |
| transit | Displays information about LSPs of a transit LSR. | - |
| verbose | Displays detailed information about LSPs. | - |
Usage Scenario
If an LDP LSP fails to be established, run the display mpls lsp command and check the LSP configuration.
Precautions
If you run the display mpls lsp command without specifying any parameter, information about LSPs of all types are displayed.
# Display information about LSPs of all types.
<sysname> display mpls lsp
-------------------------------------------------------------------------------
LSP Information: RSVP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
2.2.2.9/32 NULL/11264 -/Pos1/0/1
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
2.2.2.9/32 NULL/3 -/Pos1/0/0
2.2.2.9/32 1024/3 -/Pos1/0/0
3.3.3.9/32 NULL/3 -/Pos1/0/1
3.3.3.9/32 1025/3 -/Pos1/0/1
----------------------------------------------------------------------
LSP Information: L3VPN Label-Per-Nexthop LSP
----------------------------------------------------------------------
IndirectID NextHop In/Out Label In/Out IF Vrf Name
0x1 10.10.1.1 13312/13312 -/- ASBR LSP
0x1 10.10.1.1 13313/13313 -/- ASBR LSP
0x1 10.10.1.1 13314/13314 -/- ASBR LSP
0x2 4.4.4.9 13316/13314 -/- ASBR LSP
0x2 4.4.4.9 13317/13313 -/- ASBR LSP
0x2 4.4.4.9 13318/13312 -/- ASBR LSP
----------------------------------------------------------------------
LSP Information: L3VPN IPv6 LSP
----------------------------------------------------------------------
FEC : 11::/64
In Label : 13315 Out Label : 13315
In Interface : ----- OutInterface : -----
Vrf6 Name : ASBR LSP
----------------------------------------------------------------------
LSP Information: L3VPN IPv6 Label-Per-Nexthop LSP
----------------------------------------------------------------------
IndirectID : 0x1
NextHop : ::FFFF:10.10.1.1
In Label : 13315 Out Label : 13315
In Interface : ----- OutInterface : -----
Vrf Name : ASBR LSP
IndirectID : 0x2
NextHop : ::FFFF:4.4.4.9
In Label : 13319 Out Label : 13316
In Interface : ----- OutInterface : -----
Vrf Name : ASBR LSP
Item |
Description |
|---|---|
LSP Information: |
LSP information:
|
FEC |
Forwarding equivalence class. Usually, the value is the destination address of an LSP. |
In/Out Label |
Values of the incoming and outgoing labels. |
In/Out IF |
Names of the inbound and outbound interfaces. |
Vrf Name |
Name of a VPN instance. |
IndirectID |
The ID which BGP required. |
NextHop |
IP address of the next hop. |
Vrf6 Name |
Name of a VPNv6 instance. |
# Display information about all LSPs with the next hop of 10.10.1.1.
<sysname> display mpls lsp nexthop 10.10.1.1
-------------------------------------------------------------------------------
LSP Information: L3VPN Label-Per-Nexthop LSP
-------------------------------------------------------------------------------
IndirectID NextHop In/Out Label In/Out IF Vrf Name
0x1 10.10.1.1 13312/13312 -/- ASBR LSP
# Display information about all types of LSPs.
<sysname> display mpls lsp verbose
------------------------------------------------------------------------------- LSP Information: BGP LSP ------------------------------------------------------------------------------- No : 1 VrfIndex : RD Value : 0:0 Fec : 5.5.5.5/32 Nexthop : 2.2.2.2 In-Label : NULL Out-Label : 900004 In-Interface : ---------- Out-Interface : ---------- LspIndex : 22528 Token : 0x800804 LsrType : Ingress Outgoing token : 0x800802 Label Operation : PUSH Mpls-Mtu : ------ TimeStamp : 237187sec FrrToken : 0x0 FrrOutgoingToken : 0x0 BGPKey : ------- BackupBGPKey : ------- FrrOutLabel : ------- Bfd-State : Up Exp-Mode : Uniform No : 2 VrfIndex : RD Value : 0:0 Fec : 1.1.1.1/32 Nexthop : ------- In-Label : 900003 Out-Label : NULL In-Interface : ---------- Out-Interface : ---------- LspIndex : 22529 Token : 0x0 LsrType : Egress Outgoing token : 0x0 Label Operation : POP Mpls-Mtu : ------ TimeStamp : 237158sec FrrToken : 0x0 FrrOutgoingToken : 0x0 BGPKey : ------- BackupBGPKey : ------- FrrOutLabel : ------- Bfd-State : Up Exp-Mode : Uniform ------------------------------------------------------------------------------- LSP Information: RSVP LSP ------------------------------------------------------------------------------- No : 1 SessionID : 101 IngressLsrID : 1.1.1.1 LocalLspID : 1 Tunnel-Interface : Tunnel1/0/1 Fec : 2.2.2.2/32 TunnelTableIndex : 0x1 Nexthop : 10.20.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : Pos1/0/1 LspIndex : 2049 Token : 0x802003 LsrType : Ingress Mpls-Mtu : ------ TimeStamp : 21600sec Bfd-State : --- BGPKey : ----- CBfd-Event : 0x0 Bed-State : BED STOP Bed-LastNotifyValue : --- Bed-LastNotifyLspId : --- No : 2 SessionID : 100 IngressLsrID : 1.1.1.1 LocalLspID : 1 Tunnel-Interface : Tunnel1/0/0 Fec : 2.2.2.2/32 TunnelTableIndex : 0x2 Nexthop : 10.20.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : GE0/0/1 LspIndex : 2050 Token : 0x802006 LsrType : Ingress Mpls-Mtu : ------ TimeStamp : 21498sec Bfd-State : --- BGPKey : ----- CBfd-Event : 0x0 Bed-State : BED STOP Bed-LastNotifyValue : --- Bed-LastNotifyLspId : --- No : 3 SessionID : 1025 IngressLsrID : 1.1.1.1 LocalLspID : 1 Tunnel-Interface : Tunnel0/0/2048 Fec : 2.2.2.2/32 TunnelTableIndex : 0x3 Nexthop : 10.10.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : GE0/0/0 LspIndex : 2051 Token : 0x80200c LsrType : Ingress Mpls-Mtu : ------ TimeStamp : 1815sec Bfd-State : --- BGPKey : ----- CBfd-Event : 0x0 Bed-State : BED STOP Bed-LastNotifyValue : --- Bed-LastNotifyLspId : --- ------------------------------------------------------------------------------- LSP Information: LDP LSP ------------------------------------------------------------------------------- No : 4 VrfIndex : Fec : 2.2.2.2/32 Nexthop : 10.10.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : GE0/0/0 LspIndex : 9217 Token : 0x802009 FrrToken : 0x0 LsrType : Ingress Outgoing token : 0x0 Label Operation : PUSH Mpls-Mtu : ------ TimeStamp : 21086sec Bfd-State : --- BGPKey : ----- No : 5 VrfIndex : Fec : 2.2.2.2/32 Nexthop : 10.20.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : GE0/0/1 LspIndex : 9218 Token : 0x80200a FrrToken : 0x0 LsrType : Ingress Outgoing token : 0x0 Label Operation : PUSH Mpls-Mtu : ------ TimeStamp : 19569sec Bfd-State : --- BGPKey : -----
Item |
Description |
|---|---|
No |
Sequence number of an LSP |
SessionID |
Session ID of a CR-LSP |
IngressLsrID |
Ingress LSR ID of a CR-LSP |
LocalLspID |
Local LSP ID of a CR-LSP |
Tunnel-Interface |
Tunnel interface |
Fec |
Forwarding equivalence class, which is destination address of an LSP |
TunnelTableIndex |
Index of a tunnel table. |
Nexthop |
IP address of the next hop of an LSP |
In-Label |
Value of an incoming label |
Out-Label |
Value of an outgoing label |
In-Interface |
Name of an inbound interface |
Out-Interface |
Name of an outbound interface |
LspIndex |
Index number of an LSP, which uniquely identifies an LSP that is established using a specific protocol |
Token |
LSP token, which guides the packet forwarding |
LsrType |
Role of an LSR on an LSP:
|
Mpls-Mtu |
Maximum transmission unit (in bytes) of an interface on an LSP |
TimeStamp |
Time elapsed since an LSP was set up |
Bfd-State |
BFD status |
CBfd-Event |
On the ingress, the RSVP(Resource Reservation Protocol) LSP receives bit error events reported by the BFD. |
Bed-State |
Bit error status of the RSVP LSP on the ingress:
|
Bed-LastNotifyValue |
On the egress, the RSVP LSP notifies bit error events to the BFD. |
Bed-LastNotifyLspId |
The LSP ID of the reverse LSP when the RSVP LSP notifies bit error events to the BFD on the egress. |
Exp-Mode |
Mode in which a BGP label inherits the QoS priority in the outer tunnel label:
|
BGP Key |
Index of BGP |
BackupBGPKey |
Backup Index of BGP |
FrrOutLabel |
Value of an outgoing label for backup BGP LSP |
VrfIndex |
Index of a VPN instance, which is available only for non-CR-LSPs |
FrrToken |
Token of a standby LDP LSP, which is available only for non-CR-LSPs |
Outgoing token |
Token that guides the packet forwarding, which is available for only non-CR-LSPs |
Label Operation |
Type of a label operation, which is available only for non-CR-LSPs:
|