display mpls route-state

Function

The display mpls route-state command displays LSP routing information.

Format

display mpls route-state [ { exclude | include } { idle | ready | settingup } | destination-address mask-length ] [ verbose ]

display mpls route-state vpn-instance vpn-instance-name [ { exclude | include } { idle | ready | settingup } | destination-address mask-length ] [ verbose ]

Parameters

Parameter Description Value
exclude

Displays routing information about LSPs excluding specified ones.

-

include

Displays routing information about specified LSPs.

-

idle

Indicates that a route is not used by LDP to establish an LSP.

-

ready

Indicates that a route has been used by LDP to establish an LSP.

-

settingup

Indicates that a signaling protocol is creating an LSP.

-

destination-address

Specifies the destination address and its mask.

The value is in dotted decimal notation.

mask-length

Specifies the mask length of an destination address.

The value is an integer ranging from 0 to 32.

verbose

Displays detailed routing information about an LSP.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
mpls-ldp read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about all routes for an LSP.
<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
--------------------------------------------------------------------------------
1.1.1.1/32         127.0.0.1       Loop1                      READY 1   0      I
     LspIndex: 5000129    InLabel: 3          OutLabel: NULL 
2.2.2.2/32         172.16.12.2     GE0/1/8                    READY 2   0      I
     LspIndex: 5000130    InLabel: NULL       OutLabel: 3           
     LspIndex: 5000130    InLabel: 26         OutLabel: 3           
3.3.3.3/32         172.16.12.2     GE0/1/8                    IDLE  0   0      I
10.10.10.10/32     192.168.1.1     LDP LSP                    IDLE  0   0   RLFA
172.16.12.0/24     172.16.12.1     GE0/1/8                    IDLE  0   0      I
172.16.23.0/24     172.16.12.2     GE0/1/8                    IDLE  0   0      I
Table 1 Description of the display mpls route-state command output
Item Description
Next-Hop

Next-hop IP address.

Out-Interface

Outbound interface:

  • Interface name.
  • LDP LSP.
State

Routing state of the MPLS control plane:

  • IDLE: The route is not used to establish an LSP.
  • SETTINGUP: The signaling protocol is creating an LSP.
  • READY: A route has been used by LDP to establish an LSP. Static LSPs are only in the READY state.
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:

  • B: BGP route.
  • I: IGP route.
  • L: labeled BGP routes of the public network.
  • O: original BGP route.
  • U: unknown route.
  • RLFA: remote LFA route.
Dest/Mask

Destination IP address and mask length.

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.

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