display mpls ldp fec

Use display mpls ldp fec to display LDP FEC-label mappings.

Syntax

display mpls ldp fec [ vpn-instance vpn-instance-name ] [ ipv4-address mask-length | summary ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. This command displays FEC-label mappings for the specified VPN instance. If you do not specify a VPN instance, this command displays FEC-label mappings for the public network.

ipv4-address mask-length: Specifies an IPv4 FEC by an IPv4 address and a mask length in the range of 0 to 32.

summary: Displays summary information about all FEC-label mappings learned by LDP.

Usage guidelines

If you specify only the summary keyword, this command displays summary information about all IPv4 FEC-label mappings.

If you do not specify the ipv4-address mask-length and summary parameters, this command displays detailed information about all IPv4 FEC-label mappings.

Examples

# Display detailed information about all IPv4 FEC-label mappings learned by LDP for the public network.

<Sysname> display mpls ldp fec
 FEC: 100.100.100.18/32
   Flags: 0x02
   In Label: 1531
   Label Advertisement Policy:
     FEC Prefix-list: Fec-prefix-list
     Peer Prefix-list: Peer-prefix-list
   Upstream Info:
     Peer: 100.100.100.18:0        State: Established (stale)
   Downstream Info:
     Peer: 100.100.100.18:0
       Out Label: 3                State: Established (stale)
       Next Hops: 202.118.224.18          Vlan10
                  100.19.100.18           Vlan20

 FEC: 200.100.100.18/32 (No route)
   Flags: 0x0
   In Label: 1532
   Upstream Info:
     Peer: 200.200.200.28:0        State: Established
   Downstream Info:
     Peer: 120.100.100.18:0
       Out Label: 3                State: Idle

Table 12: Command output

Field

Description

FEC

Forwarding equivalence class identified by an IP prefix.

Flags

FEC flag. It represents different things by setting different bits to 1. If multiple bits are set to 1, the flag represents all the things that correspond to those bits. This field displays the sum of the flag values. For example, if the FEC flag has values 0x01 and 0x20, this field displays 0x21.

Possible value of the FEC flag:

  • 0x0—Initial value.

  • 0x01—Egress LSP.

  • 0x02—Ingress LSP.

  • 0x04—Waiting to add an outgoing label to RIB.

  • 0x08—Waiting to refresh LSPs in LSM.

  • 0x10—Ready to advertise labels.

  • 0x20—FEC-label mappings have been refreshed during a GR process.

  • 0x40—Delayed refreshing LSPs in LSM.

  • 0x80—Non-egress LSP waiting for the recovery during a GR process.

In Label

Incoming label assigned by the local LSR to the FEC.

Label Advertisement Policy

Label advertisement policy.

FEC Prefix-list

IP prefix list for filtering FEC prefixes.

Peer Prefix-list

IP prefix list for filtering LDP peers.

Upstream Info

Upstream peer to which the local LSR advertised the FEC-label mapping and current state of the LSP.

Peer

LDP ID of an upstream peer.

State

Current state of the LSP established with the upstream peer:

  • Established—Active state.

  • Idle—Initial state.

  • Release Awaited—Waiting for a Release message.

  • Resource Awaited—Waiting for a label for the FEC.

If the state is marked as stale, the FEC-label mapping is under a GR process.

Downstream Info

Downstream peer from which the local LSR received the FEC-label mapping, and current state of the LSP.

Peer

LDP ID of a downstream peer.

Out Label

Outgoing label assigned by the downstream LSR for the FEC.

State

Current state of the LSP established with the downstream peer:

  • Established—Active state.

  • Idle—Inactive state.

If the state is marked as stale, the FEC-label mapping is under a GR process.

Next Hops

Next hops and outgoing interfaces.

# Display summary information about all IPv4 FEC-label mappings learned by LDP for the public network.

<Sysname> display mpls ldp fec summary
FECs         : 3
Implicit Null: 1
Explicit Null: 0
Non-Null     : 2
No Label     : 0
No Route     : 0
Sent         : 3
Received     : 3

Table 13: Command output

Field

Description

FECs

Number of FECs that LDP has discovered from the routing protocol or FEC-label mappings advertised by peers.

Implicit Null

Number of FECs that are bound to the implicit null label.

Explicit Null

Number of FECs that are bound to the explicit null label.

Non-Null

Number of FECs that are bound to non-null labels.

No Label

Number of FECs without a label.

No Route

Number of FECs without matching routes.

The reason why an FEC has no matching route might be one of the following:

  • No matching route exists in the routing table.

  • The matching route exists in the routing table, but it is not redistributed into LDP.

Sent

Number of label mappings sent and being sent.

Received

Number of label mappings accepted.