Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show ldp database

Syntax

show ldp database<brief | detail | extensive> <inet | l2circuit> <instance instance-name><logical-system (all | logical-system-name)><session session>

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 14.1X53-D10 for the QFX Series and for EX4600 switches.

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.

session session

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

Required Privilege Level

view

List of Sample Output

show ldp database
show ldp database l2circuit detail
show ldp database session
show ldp database (Ingress Node with Multipoint LDP Inband Signaling for Point-to-Multipoint LSPs)
show ldp database (Egress Node with Multipoint LDP Inband Signaling for Point-to-Multipoint LSPs)
show ldp database l2circuit extensive

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

Label

Label binding to a route prefix.

All levels

Prefix

Route prefix. either the , or the

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

user@host> show ldp database
Input label database, 10.255.245.222:0--10.255.245.221:0
  Label     Prefix
 3     10.255.245.221/32 (Stale)
100018     10.255.245.222/32
100011     L2CKT FRAME RELAY VC 11
Output label database, 10.255.245.222:0--10.255.245.221:0
  Label     Prefix
      3     10.255.245.221/32
 100018     10.255.245.222/32
 100011     L2CKT FRAME RELAY VC 1

show ldp database l2circuit detail

user@host> show ldp database l2circuit detail
 Input label database, 10.255.245.44:0--10.255.245.45:0
    Label     Prefix
   100176     L2CKT CtrlWord ATM CELL (VC Mode) VC 100
              Cell bundle size: 80
              State: Active
              Age: 9:48
   100256     L2CKT CtrlWord FRAME RELAY VC 101
              MTU: 4470
              State: Active
              Age: 9:48
 
 Output label database, 10.255.245.44:0--10.255.245.45:0
    Label     Prefix
   100048     L2CKT CtrlWord ATM CELL (VC Mode) VC 100
              Cell bundle size: 80
              State: Active
              Age: 9:48
   100112     L2CKT CtrlWord FRAME RELAY VC 101
              MTU: 4470
              State: Active
              Age: 9:48

show ldp database session

user@host> show ldp database session 10.1.1.195
Input label database, 10.0.0.194:0--10.1.1.195:0
  Label     Prefix
 100002     10.255.245.197/32
 100003     10.255.245.196/32
 100004     10.0.0.194/32
      3     10.1.1.195/32
 100000     L2CKT NoCtrlWord FRAME RELAY VC 1
 100001     L2CKT CtrlWord FRAME RELAY VC 2
Output label database, 10.0.0.194:0--10.1.1.195:0
  Label     Prefix
 100003     10.255.245.197/32
 100004     10.1.1.195/32
 100002     10.255.245.196/32
      3     10.0.0.194/32
 100000     L2CKT CtrlWord FRAME RELAY VC 2
 100001     L2CKT NoCtrlWord FRAME RELAY VC 1

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

user@host> show ldp database
Input label database, 1.1.1.2:0--1.1.1.3:0
  Label     Prefix
 299808      1.1.1.2/32
      3      1.1.1.3/32
 299792      1.1.1.6/32
 299776      10.255.2.227/32
 299840      P2MP root-addr 1.1.1.2, grp: 232.2.2.2, src: 1.2.7.7
 299824      P2MP root-addr 1.1.1.2, grp: 232.1.1.2, src: 192.168.219.11

Output label database, 1.1.1.2:0--1.1.1.3:0
  Label     Prefix
      3      1.1.1.2/32
 299776      1.1.1.3/32
 299808      1.1.1.6/32
 299792      10.255.2.227/32

Input label database, 1.1.1.2:0--1.1.1.6:0
  Label     Prefix
 299856      1.1.1.2/32
 299792      1.1.1.3/32
      3      1.1.1.6/32
 299776      10.255.2.227/32
 299888      P2MP root-addr 1.1.1.2, grp: 232.2.2.2, src: 1.2.7.7
 299808      P2MP root-addr 1.1.1.2, grp: 232.1.1.1, src: 192.168.219.11
 299824      P2MP root-addr 1.1.1.2, grp: 232.1.1.2, src: 192.168.219.11
 299840      P2MP root-addr 1.1.1.2, grp: 232.1.1.3, src: 192.168.219.11
 299872      P2MP root-addr 1.1.1.2, grp: ff3e::1:2, src: abcd::1:2:7:7

Output label database, 1.1.1.2:0--1.1.1.6:0
  Label     Prefix
      3      1.1.1.2/32
 299776      1.1.1.3/32
 299808      1.1.1.6/32
 299792      10.255.2.227/32

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

user@host> show ldp database
Input label database, 10.255.2.227:0--1.1.1.3:0
  Label     Prefix
 299808      1.1.1.2/32
      3      1.1.1.3/32
 299792      1.1.1.6/32
 299776      10.255.2.227/32

Output label database, 10.255.2.227:0--1.1.1.3:0
  Label     Prefix
 299856      1.1.1.2/32
 299776      1.1.1.3/32
 299792      1.1.1.6/32
      3      10.255.2.227/32

Input label database, 10.255.2.227:0--1.1.1.6:0
  Label     Prefix
 299856      1.1.1.2/32
 299792      1.1.1.3/32
      3      1.1.1.6/32
 299776      10.255.2.227/32

Output label database, 10.255.2.227:0--1.1.1.6:0
  Label     Prefix
 299856      1.1.1.2/32
 299776      1.1.1.3/32
 299792      1.1.1.6/32
      3      10.255.2.227/32
 299888      P2MP root-addr 1.1.1.2, grp: 232.2.2.2, src: 1.2.7.7
 299808      P2MP root-addr 1.1.1.2, grp: 232.1.1.1, src: 192.168.219.11
 299824      P2MP root-addr 1.1.1.2, grp: 232.1.1.2, src: 192.168.219.11
 299840      P2MP root-addr 1.1.1.2, grp: 232.1.1.3, src: 192.168.219.11
 299872      P2MP root-addr 1.1.1.2, grp: ff3e::1:2, src: abcd::1:2:7:7

show ldp database l2circuit extensive

user@host> show ldp database l2circuit extensive
Input label database, 10.255.245.198:0--10.255.245.194:0
  Label     Prefix
 299872     L2CKT CtrlWord PPP VC 100
            MTU: 4470
            VCCV Control Channel types:
                MPLS router alert label 
                MPLS PW label with TTL=1 
            VCCV Control Verification types:
                LSP ping 
  Label     Prefix
            State: Active
            Age: 19:23:08

Published: 2014-09-26