show ldp database
Syntax
Release Information
Command introduced before Junos OS 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.
- 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 databaseshow ldp database l2circuit detail
show ldp database session
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. 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
| 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:
| detail |
Age | Time elapsed since the binding was created. | detail |
Sample Output
show ldp database
user@host> show ldp databaseInput 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
