< Home

display mpls ldp lsp

Function

The display mpls ldp lsp command displays information about an LDP label switched path (LSP).

Format

display mpls ldp lsp [ destination-address mask-length ] [ peer peer-id ]

display mpls ldp lsp [ all ] [ peer peer-id ]

display mpls ldp lsp inbound-policy

Parameters

Parameter Description Value
destination-address Specifies the destination IPv4 address of an LDP LSP. -
mask-length Specifies the mask length of the specified destination IPv4 address. An integer ranging from 0 to 32
peer peer-id Specifies the peer ID. -
all Displays information about all LDP LSPs. -
inbound-policy Displays information about the LSPs that have passed an inbound policy, in addition to information about the LSPs that are established without applying the inbound policy. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After establishing LSPs through LDP, run the display mpls ldp lsp command to view the number of the LSPs that pass through each device and their detailed information.

By configuring the parameter inbound-policy, view information about LDP LSPs that have passed the inbound policy. If no inbound policy is configured, information about all LDP LSPs is displayed.

Example

# Display information about LSPs.

<sysname> display mpls ldp lsp
 LDP LSP Information                                                            
 -------------------------------------------------------------------------------
 DestAddress/Mask   In/OutLabel    UpstreamPeer    NextHop         OutInterface 
 -------------------------------------------------------------------------------
 1.1.1.1/32         3/NULL         3.3.3.3         10.10.0.1       InLoop0      
 1.1.1.1/32         3/NULL         2.2.2.2         10.10.0.1       InLoop0      
*1.1.1.1/32         Liberal/1026                   DS/3.3.3.3                   
*1.1.1.1/32         Liberal/1025                   DS/2.2.2.2                   
 2.2.2.2/32         NULL/3         -               10.11.11.2      Eth0/0/0     
 2.2.2.2/32         1025/3         2.2.2.2         10.11.11.2      Eth0/0/0     
 2.2.2.2/32         1025/3         3.3.3.3         10.11.11.2      Eth0/0/0     
*2.2.2.2/32         Liberal/1024                   DS/3.3.3.3                   
 3.3.3.3/32         NULL/3         -               33.33.33.3      Eth0/0/1     
 3.3.3.3/32         1024/3         3.3.3.3         33.33.33.3      Eth0/0/1     
 3.3.3.3/32         1024/3         2.2.2.2         33.33.33.3      Eth0/0/1     
*3.3.3.3/32         Liberal/1024                   DS/2.2.2.2                   
*10.11.11.0/24      Liberal/1025                   DS/3.3.3.3                   
*10.11.11.0/24      Liberal/3                      DS/2.2.2.2                   
 10.22.22.0/24      1026/3         2.2.2.2         10.11.11.2      Eth0/0/0     
 10.22.22.0/24      1026/3         3.3.3.3         10.11.11.2      Eth0/0/0     
*192.168.1.0/24     Liberal/3                      DS/2.2.2.2                   
 -------------------------------------------------------------------------------
 TOTAL: 10 Normal LSP(s) Found.                                                 
 TOTAL: 7 Liberal LSP(s) Found.                                                 
 TOTAL: 0 Frr LSP(s) Found.                                                     
 A '*' before an LSP means the LSP is not established                           
 A '*' before a Label means the USCB or DSCB is stale                           
 A '*' before a UpstreamPeer means the session is in GR state                   
 A '*' before a DS means the session is in GR state                             
 A '*' before a NextHop means the LSP is FRR LSP                                
Table 1 Description of the display mpls ldp lsp command output

Item

Description

DestAddress/Mask

Destination address and mask of an LSP

An asterisk (*) before DestAddress/Mask indicates that the LSP is not established.

In/OutLabel

Values of the incoming and outgoing labels

An asterisk (*) before In/OutLabel indicates that the LSP is in the Stale state and needs to be restored.

UpstreamPeer

Upstream peer of an LSP

An asterisk (*) before UpstreamPeer indicates that the session is in the GR state.

NextHop

Next-hop IP address

An asterisk (*) before NextHop indicates that the LSP is a backup LSP.

DS is short for DownStream. The address next to DS/ is the LSR ID of a downstream peer. The next hop of a Liberal LSP is in this format.

OutInterface

Name of an outgoing interface

Normal LSP

Normal LSP

Liberal LSP

Liberal LSP

Frr LSP

Frr LSP

USCB

Upstream control block

DSCB

Downstream control block

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