[Contents] [Prev] [Next] [Index] [Report an Error]

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 Release 7.4.

Description

Display entries in the Label Distribution Protocol (LDP) database.

Options

none — Display standard information about all entries in the LDP database for all routing instances on all logical systems.

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

Output Fields

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

Table 132: 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. It can be either the IP prefix or the Layer 2 encapsulation type 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

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

[Contents] [Prev] [Next] [Index] [Report an Error]