display mpls route-state [ vpn-instance vpn-instance-name ] [ { exclude | include } { idle | ready | settingup } * | destination-address mask-length ] [ verbose ]
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
exclude |
Displays routing information excluding the specified route. |
- |
include |
Displays information about a specified route. |
- |
idle |
Indicates that a route is not used to establish an LSP. |
- |
ready |
Indicates that a route has been used to establish an LSP. |
- |
settingup |
Indicates that a signaling protocol is creating an LSP. |
- |
destination-address |
Specifies the destination address. |
The value is in dotted decimal notation. |
mask-length |
Specifies the mask length of a specified destination address. |
The value is an integer ranging from 0 to 32. |
verbose |
Displays detailed routing information about an LSP. |
- |
Usage Scenario
After completing LDP LSP configurations, run the display mpls ldp lsp command to view information about an LDP LSP. If the command output displays no information about the LDP LSP, run the display mpls route-state command to view LDP LSP routing information.
Precautions
Only routing states of the LSPs that are set up based on dynamic signaling protocols can be changed. Therefore, the display mpls route-state command displays only routing states of dynamic LSPs, but not routing information about static LSPs.
# Display detailed information about routes of dynamic LSPs.
<HUAWEI> display mpls route-state verbose Codes: B(BGP), I(IGP), L(Public Label BGP), O(Original BGP), U(Unknown) -------------------------------------------------------------------------------- Dest/Mask Next-Hop Out-Interface State LSP VRF Type ------------------------------------------------------------------------------- 10.21.21.21/32 10.22.22.21 Vlanif100 READY 2 0 I LspIndex: 30720 InLabel: NULL OutLabel: 3 LspIndex: 32728 InLabel: 1024 OutLabel: 3 10.0.0.6/32 10.21.22.21 Vlanif100 READY 1 0 I LspIndex: 33053 InLabel: NULL OutLabel: 3338
Item |
Description |
---|---|
Dest/Mask |
Destination IP address and mask length. |
Next-Hop |
Next hop IP address. |
Out-Interface |
Outbound interface. |
State |
Routing state of the MPLS control plane:
|
LSP |
Number of LSPs reachable to the destination address. If the displayed value is not 0, there are LSPs reachable to the destination address and LSP information about these LSPs is also displayed. |
VRF |
Index of a VPN instance. The value 0 indicates the public network. |
Type |
Route type:
|
LspIndex |
Index of an LSP established using the route. |
InLabel |
Incoming label of an LSP established using the route. If NULL is displayed, the current node is the ingress node of the LSP; if a number is displayed, the current node is the transit or egress node of the LSP. |
OutLabel |
Outgoing label of an LSP established using the route. |