The display mpls lsp command displays information about LSPs.
The display mpls lsp compatible command displays information about LSPs.
display mpls lsp [ outgoing-interface { interface-name | interface-type interface-number } ] [ lsr-role { ingress | transit | egress } ] [ verbose ]
display mpls lsp include ip-address mask-length
display mpls lsp exclude ip-address mask-length
display mpls lsp compatible [ outgoing-interface { interface-name | interface-type interface-number } ] [ lsr-role { ingress | transit | egress } ]
display mpls lsp compatible include ip-address mask-length
display mpls lsp compatible exclude ip-address mask-length
display mpls lsp include ip-address mask-length verbose
display mpls lsp exclude ip-address mask-length verbose
display mpls lsp nexthop nexthop [ lsr-role { ingress | transit | egress } ] [ verbose ]
display mpls lsp vpn-instance vpn-instance-name [ outgoing-interface { interface-name | interface-type interface-number } ] [ lsr-role { ingress | transit | egress } ] [ verbose ]
display mpls lsp vpn-instance vpn-instance-name include ip-address mask-length
display mpls lsp vpn-instance vpn-instance-name exclude ip-address mask-length
display mpls lsp vpn-instance vpn-instance-name include ip-address mask-length verbose
display mpls lsp vpn-instance vpn-instance-name exclude ip-address mask-length verbose
display mpls lsp vpn-instance vpn-instance-name nexthop nexthop [ lsr-role { ingress | transit | egress } ] [ verbose ]
Parameter | Description | Value |
---|---|---|
outgoing-interface |
Displays information about all LSPs with a specified outbound interface. |
- |
interface-name |
Specifies an interface name. |
- |
interface-type |
Specifies the interface type. |
- |
interface-number |
Specifies the interface number. |
- |
lsr-role |
Displays information about all LSPs on the current LSR that plays a specified role. |
- |
ingress |
Displays information about all LSPs on the current LSR that functions as the ingress. |
- |
transit |
Displays information about all LSPs on the current LSR that functions as a transit node. |
- |
egress |
Displays information about all LSPs on the current LSR that functions as the egress. |
- |
verbose |
Displays detailed information about LSPs. |
- |
include |
Displays information about LSPs that are mapped to a specified FEC. |
- |
ip-address |
Displays information about LSPs with a specified destination IP address. |
The value is in dotted decimal notation. |
mask-length |
Mask length of an IP address. |
The value is an integer ranging from 0 to 32. |
exclude |
Displays information about LSPs that are not mapped to a specified FEC. |
- |
nexthop nexthop |
Displays information about all LSPs with a specified next hop. |
The value is in dotted decimal notation. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
Specifies a VPN instance name. |
Usage Scenario
If no parameter is configured, the display mpls lsp command displays information about all LSPs.
If BGP LSPs load-balance traffic, this command output contains only optimal outbound interface information of routes. To query all outbound interface information used in BGP LSP ECMP, query the BGP or IP routing table.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display mpls lsp verbose ---------------------------------------------------------------------- LSP Information: RSVP LSP ---------------------------------------------------------------------- No : 1 SessionID : 1 IngressLsrID : 1.1.1.1 LocalLspID : 15 Tunnel-Interface : Tunnel1 Fec : 2.2.2.2/32 Type : Main Nexthop : 10.10.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : Ethernet0/1/16 LspIndex : 40961 Token : ---------- LsrType : Ingress Mpls-Mtu : 1500 LspAge : 8616 sec Entropy Label Flag : Enable ------------------------------------------------------------------------------- LSP Information: LDP LSP ------------------------------------------------------------------------------- No : 2 VrfIndex : Fec : 1.1.1.1/32 Nexthop : 127.0.0.1 In-Label : 3 Out-Label : NULL In-Interface : ---------- Out-Interface : ---------- LspIndex : 5000001 Type : Primary OutSegmentIndex : 4294967295 LsrType : Egress Outgoing TunnelType : ------ Outgoing TunnelID : 0x0 Label Operation : POP Mpls-Mtu : ------ LspAge : 165669 sec Ingress-ELC : ------ No : 3 VrfIndex : Fec : 2.2.2.2/32 Nexthop : 10.10.1.2 In-Label : NULL Out-Label : 3 In-Interface : ---------- Out-Interface : Ethernet0/1/16 LspIndex : 5000577 Type : Primary OutSegmentIndex : 5024577 LsrType : Ingress Outgoing TunnelType : ------ Outgoing TunnelID : 0x0 Label Operation : PUSH Mpls-Mtu : 1500 LspAge : 9671 sec Ingress-ELC : Enable No : 4 VrfIndex : Fec : 2.2.2.2/32 Nexthop : 10.10.1.2 In-Label : 48069 Out-Label : 3 In-Interface : ---------- Out-Interface : Ethernet0/1/16 LspIndex : 5000577 Type : Primary OutSegmentIndex : 5024577 LsrType : Transit Outgoing TunnelType : ------ Outgoing TunnelID : 0x0 Label Operation : SWAP Mpls-Mtu : 1500 LspAge : 9671 sec Ingress-ELC : ------
<HUAWEI> display mpls lsp compatible Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP Flag after LDP FRR: (L) - Logic FRR LSP ------------------------------------------------------------------------------- LSP Information: LDP LSP ------------------------------------------------------------------------------- FEC In/Out Label In/Out IF Vrf Name 10.2.3.4/32 3/NULL -/- 10.3.4.5/32 NULL/3 -/GE0/1/0 10.3.4.5/32 22/3 -/GE0/1/0
<HUAWEI> display mpls lsp Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP Flag after LDP FRR: (L) - Logic FRR LSP ------------------------------------------------------------------------------- LSP Information: LDP LSP ------------------------------------------------------------------------------- FEC In/Out Label In/Out IF Vrf Name 10.2.3.4/32 3/NULL -/- 10.3.4.5/32 NULL/3 -/GE0/1/0 10.3.4.5/32 22/3 -/GE0/1/0 10.10.3.3/32 NULL/3001 -/GE0/1/1(I*) 10.10.3.3/32 3002/3001 -/GE0/1/1 **LDP FRR** NULL/3002 -/GE0/1/2(I*) **LDP FRR** 3002/3002 -/GE0/1/2 10.10.4.4/32 NULL/3003 -/GE0/1/3 10.10.4.4/32 3005/3004 -/GE0/1/3 **LDP FRR** NULL/3006 -/LDP LSP **LDP FRR** 3005/3006 -/LDP LSP 10.10.5.5/32 NULL/3 -/GE0/1/4 10.10.5.5/32 48125/3 -/GE0/1/4 **LDP FRR** NULL/48153 -/SRBE **LDP FRR** 48125/48153 -/SRBE
Item | Description |
---|---|
LSP Information: | Information about various types of LSPs.
|
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. |
Type | Type of LSP. The value for an LDP LSP can be:
The value for an RSVP LSP can be:
|
Nexthop | Next hop address. |
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 of an LSP. |
Token | LSP token, guiding the packet forwarding. |
LsrType | Role of an LSR on an LSP:
|
Mpls-Mtu | Maximum transmission unit (MTU) of an interface of an LSP. |
LspAge | Time elapsed since an LSP was set up. |
Entropy Label Flag | Whether the entropy label function is enabled, which is the negotiation result of the ingress and egress of an RSVP-TE LSP. |
Label Operation | Operations on labels:
This value is available only for non-CR-LSPs. |
VrfIndex | Index of a VPN instance. This value is available only for non-CR-LSPs. |
OutSegmentIndex | OutSegment index. |
Outgoing TunnelType | Type of the tunnel to which an LSP is iterated. |
Outgoing TunnelID | ID of the tunnel to which the LSP is iterated. |
Ingress-ELC | Flag indicating whether the entropy label delivery capability is enabled. After the negotiation between the ingress and egress of an LDP LSP succeeds, the ingress delivers the entropy label. This flag is enabled only when the egress has the entropy label capability and the entropy label function is enabled for the current LSP. |
FEC | Indicates the forwarding equivalence class. Usually, the value is the destination address and mask for an LSP. |
In/Out Label | Indicates the values of the incoming and outgoing labels. |
In/Out IF | Indicates the names of the inbound and outbound interfaces. |
Vrf Name | Indicates the name of a VPN instance. |