display mpls lsp
Use display mpls lsp to display LSP information.
Syntax
display mpls lsp [ egress | in-label label-value | ingress | outgoing-interface interface-type interface-number | protocol { bgp | ldp | local | rsvp-te | static | static-cr } | transit ] [ vpn-instance vpn-instance-name ] [ ipv4-address mask-length ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
egress: Displays the LSPs taking the current LSR as egress.
in-label label-value: Displays the LSPs using the specified label as the incoming label, in the range of 0 to 1048575.
ingress: Displays the LSPs taking the current LSR as ingress.
outgoing-interface interface-type interface-number: Displays the LSPs using the specified interface as the outgoing interface. The interface-type interface-number argument specifies an interface by its type and number.
protocol: Displays the LSPs established by a protocol.
bgp: Displays BGP LSPs.
ldp: Displays LDP LSPs.
local: Displays the LSPs to the direct next hops, or the LSPs that use the local MPLS TE tunnel interfaces as the LSP heads.
rsvp-te: Displays CRLSPs established by RSVP-TE.
static: Displays static LSPs.
static-cr: Displays static CRLSPs and static SRLSPs.
transit: Displays the LSPs taking the current LSR as a transit LSR.
vpn-instance vpn-instance-name: Displays LSPs for the specified MPLS L3VPN instance. The vpn-instance-name is a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays LSPs for the public network.
ipv4-address mask-length: Displays the IPv4 LSP for an FEC specified by an IPv4 address and a mask length. The value range for the mask length is 0 to 32.
verbose: Displays detailed LSP information. If you do not specify this keyword, the command displays brief LSP information.
Usage guidelines
If you do not specify any parameters, this command displays brief information about all LSPs. If you specify only the verbose keyword, this command displays detailed information about all LSPs.
Examples
# Display brief information about all IPv4 LSPs.
<Sysname> display mpls lsp FEC Proto In/Out Label Interface/Out NHLFE 100.100.100.100/24 LDP -/1049 Vlan20 Backup -/1050 Vlan21 100.100.100.10/24 LDP -/1051 Vlan22 Backup -/1050 Vlan21 100.100.100.10/24 LDP -/1049 Vlan30 101.100.100.10/24 LDP 1026/1049 Vlan20 102.100.100.10/24 LDP 1027/- - 103.100.100.10/24 LDP 1028/1049 Tunnel10 110.100.100.20/24 BGP -/1049 Vlan20 111.100.100.10/24 BGP 2028/1049 Vlan20 112.100.100.10/24 BGP 2029/- Vlan20 113.100.100.10/24 BGP 2030/1049 NHLFE1500 114.100.100.10/24 BGP 2031/1050 Tunnel100 100.100.100.100 Local -/- Vlan20 101.101.101.101/32 Static -/100 Vlan20 - Static 100/200 Vlan20 - Static 101/- Vlan20 200.200.200.200/64000/64000 RSVP -/1030 Vlan10 201.200.200.200/64000/64000 RSVP 1024/1031 Vlan10 202.200.200.200/64000/64000 RSVP 1025/- - 150.140.150.100/64001/0 StaticCR -/1000 Vlan10 - StaticCR 50/1001 Vlan10 - StaticCR 51/- -
Table 4: Command output
Field | Description |
---|---|
FEC | Forwarding equivalence class:
|
Proto | Label distribution protocol:
|
In/Out Label | Incoming label/outgoing label. |
Interface/Out NHLFE | Outgoing interface name or NHLFE entry index. NHLFEnumber specifies the outer LSP that carries the current LSP. The outer LSP is that matches the NHLFE entry with an NID of number. |
# Display detailed information about all LSPs.
<Sysname> display mpls lsp verbose Destination : 56.10.10.2 FEC : 56.10.10.2/32 Protocol : LDP LSR Type : Egress Service : - In-Label : 1024 State : Active Destination : 56.10.10.4 FEC : 56.10.10.2/32 Protocol : LDP LSR Type : Transit Service : - In-Label : 1026 Path ID : 0x40000000.1 State : Active Out-Label : 1800 Nexthop : 10.1.1.2 Out-Interface: Vlan10 BkLabel : 1900 BkNexthop : 20.1.1.2 BkInterface : Vlan20 Destination : 56.10.10.4 FEC : 56.10.10.2/32 Protocol : LDP LSR Type : Ingress Service : - NHLFE ID : 2000 State : Active Out-Label : 1800 Nexthop : 10.1.1.2 Out-Interface: Vlan10
Table 5: Command output
Field | Description |
---|---|
Destination | LSP destination address. |
FEC | Forwarding equivalence class:
|
Protocol | Label distribution protocol:
|
LSR Type | LSR type:
|
Service | This field is not supported in the current software version. Service deployed on the LSP. |
Path ID | Forwarding path. The value is in the format of 0xnn.m. The nn represents the NHLFE group ID of the outer LSPs that carry the current LSP, and m represents the sequence number of the equivalence path. |
NHLFE ID | NHLFE entry index. |
State | LSP state:
|
BkLabel | Outgoing label of the backup LSP. |
BkNexthop | Next hop address of the backup LSP. |
BkInterface | Outgoing interface of the backup LSP. |