Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show ldp database

Syntax

Description

Display entries in the LDP database.

Options

none

Display standard information about all entries in the LDP database for all routing instances.

brief | detail | extensive

(Optional) Display the specified level of output.

inet | l2circuit

(Optional) Display only IPv4 or Layer 2 circuit bindings.

instance instance-name

(Optional) Display routing instance information for the specified instance only.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system. This option is only supported on Junos OS.

p2mp

(Optional) Display point-to-multipoint binding information. This option is only supported on Junos OS.

session session

(Optional) Display database for the specified session only. session is the destination address of the LDP session.

summary

(Optional)—Display summary output. This option displays the number of labels received and advertised for each LDP session.

Required Privilege Level

view

Output Fields

Table 1 describes the output fields for the show ldp database command. Output fields are listed in the approximate order in which they appear.

Table 1: show ldp database Output Fields

Field Name

Field Description

Level of Output

Input label database

Label received from the other router.

All levels

Output label database

Label advertised to the other router.

All levels

session-identifier

Session identifier, which includes the local and remote label space identifiers.

All levels

Labels received

Number of labels received from the other router.

All levels

Labels advertised

Number of labels advertised to the other router.

All levels.

Label

Label binding to a route prefix.

All levels

Prefix

Route prefix.

It can be one of the following values:

  • IP prefix.

  • Point-to-multipoint root address, multicast source address, and multicast group address when multipoint LDP (M-LDP) inband signaling is configured.

  • Layer 2 encapsulation type.

Layer 2 encapsulation types are displayed in the format L2CKT control word status encapsulation-type vc-number, for example, L2CKT CtflWord FRAME RELAY VC 2

  • control-word-status—Displays whether the use of the control word has been negotiated for this virtual circuit:

    • NoCtrlWord

    • CtrlWord

  • encapsulation-type—Encapsulation type:

    • FRAME RELAY

    • ATM AAL5

    • ATM CELL

    • VLAN

    • ETHERNET

    • CISCO_HDLC

    • PPP

  • VC number—Virtual circuit number. It can have any numeric value.

  • (Stale)—When you display the LDP database for the neighbor of a restarting router, the bindings leaned from the restarting neighbor are displayed as (Stale). Stale bindings are deleted if they are not refreshed within the recovery time.

All levels

MTU

MTU of the Layer 2 circuit. MTU is displayed for all encapsulation types except ATM cell encapsulations.

detail

VCCV Control Channel types

Virtual Circuit Connection Verification (VCCV) control channel types.

  • MPLS router alert label

  • MPLS PW label with TTL=1

extensive

VCCV Control Verification types

The only valid VCCV control verification type is LSP ping.

extensive

TDM payload size

Size of the Time Division Multiplex (TDM) payload.

All levels

TDM bitrate

Bit rate for the TDM traffic.

All levels

Requested VLAN ID

(VLANs) VLAN identifier of the Layer 2 circuit.

detail

Cell bundle size

(ATM cell encapsulations) Maximum number of cells that the Layer 2 circuit can receive in a packet.

detail

State

State of the label binding:

  • Active—Label binding has been installed and distributed appropriately. A label binding is almost always in this state.

  • New—New label that has not yet been distributed.

    • MapRcv—Waiting to receive a label mapping message.

    • MapSend—Waiting to send a label mapping message.

    • RelRcv—Waiting to receive a label release message.

    • RelRsnd—Waiting to receive a label release message before resending label mapping message.

    • RelSend—Waiting to send a label release message.

    • ReqSend—Waiting to send a label request message.

    • W/dSend—Waiting to send a label withdrawal message.

detail

Age

Time elapsed since the binding was created.

detail

Sample Output

show ldp database (primary)

show ldp database (standby)

show ldp database l2circuit detail

show ldp database l2circuit extensive

show ldp database p2mp (primary)

This command is only supported on Junos OS.

show ldp database p2mp (standby)

This command is only supported on Junos OS.

show ldp database session

show ldp database (Ingress Node with Multipoint LDP Inband Signaling for Point-to-Multipoint LSPs)

This command is only supported on Junos OS.

show ldp database (Egress Node with Multipoint LDP Inband Signaling for Point-to-Multipoint LSPs)

This command is only supported on Junos OS.

show ldp database summary

show ldp database (Multipoint LDP Recursive FEC)

Release Information

Command introduced before Junos OS Release 7.4.

summary option introduced in Junos OS Release 14.2.