81
Task Command
Remarks
Display information about LDP
sessions between LDP peers.
display mpls ldp session [ all
[ verbose ] | [ vpn-instance
vpn-instance-name ] [ peer-id |
verbose ] ] [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display statistics information about
all LSP sessions.
display mpls ldp session all
statistics [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display information about LSPs
established by LDP.
display mpls ldp lsp [ all |
[ vpn-instance vpn-instance-name ]
[ dest-addr mask-length ] ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view.
NOTE:
The vpn-instance
vpn-instance-name
option is used to specify information about an LDP instance. For
information about LDP instances, see "Configuring MPLS L3VPN"
Clearing MPLS statistics
Task Command
Remarks
Clear MPLS statistics for one or all
MPLS interfaces.
reset mpls statistics interface
{ interface-type interface-number |
all }
Available in user view.
Clear MPLS statistics for all LSPs or
the LSP with a specific index or
name.
reset mpls statistics lsp { index | all
| name lsp-name }
Available in user view.
MPLS configuration examples
This section provides examples of MPLS configuration.
Configuring static LSPs
Network requirements
Switch A, Switch B, and Switch C support MPLS.
Establish static LSPs between Switch A and Switch C so that subnets 11.1.1.0 / 24 a n d 21.1.1.0 / 24 c a n
access each other over MPLS. Test the connectivity of the static LSPs.