show ldp database
Syntax
show ldp database <brief | detail | extensive> <inet | l2circuit> <instance instance-name> <logical-system (all | logical-system-name)> <p2mp> <session session> <summary>
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. |
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.
Field Name |
Field Description |
Level of Output |
---|---|---|
|
Label received from the other router. |
All levels |
|
Label advertised to the other router. |
All levels |
|
Session identifier, which includes the local and remote label space identifiers. |
All levels |
|
Number of labels received from the other router. |
All levels |
|
Number of labels advertised to the other router. |
All levels. |
|
Label binding to a route prefix. |
All levels |
|
Route prefix. It can be one of the following values:
Layer 2 encapsulation types are displayed in the format
|
All levels |
|
MTU of the Layer 2 circuit. MTU is displayed for all encapsulation types except ATM cell encapsulations. |
|
|
Virtual Circuit Connection Verification (VCCV) control channel types.
|
|
|
The only valid VCCV control verification type is |
|
|
Size of the Time Division Multiplex (TDM) payload. |
All levels |
|
Bit rate for the TDM traffic. |
All levels |
|
(VLANs) VLAN identifier of the Layer 2 circuit. |
|
|
(ATM cell encapsulations) Maximum number of cells that the Layer 2 circuit can receive in a packet. |
|
|
State of the label binding:
|
|
|
Time elapsed since the binding was created. |
|
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)
- show ldp database p2mp (standby)
- 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 summary
- show ldp database (Multipoint LDP Recursive FEC)
show ldp database (primary)
user@host> show ldp database extensive Input label database, 10.255.107.232:0--10.255.107.236:0 Label Prefix 299840 10.255.107.232/32 State: Active Age: 9:35 Entropy Label Capability: No 3 10.255.107.236/32 State: Active Age: 9:35 Entropy Label Capability: No 299776 L2CKT CtrlWord VLAN VC 100 MTU: 1500 Requested VLAN ID: 600 Flow Label T Bit: 1 Flow Label R Bit: 1 State: Active Age: 9:35 Entropy Label Capability: No VCCV Control Channel types: PWE3 control word MPLS router alert label MPLS PW label with TTL=1 VCCV Control Verification types: LSP ping BFD with PW-ACH-encapsulation for Fault Detection BFD with IP/UDP-encapsulation for Fault Detection Output label database, 10.255.107.232:0--10.255.107.236:0 Label Prefix 3 10.255.107.232/32 State: Active Age: 9:35 Entropy Label Capability: No 299776 10.255.107.236/32 State: Active Age: 9:35 Entropy Label Capability: No
show ldp database (standby)
user@host> show ldp database extensive Input label database, 10.255.107.236:0--10.255.107.234:0 Label Prefix 299808 10.255.107.230/32 State: Active Age: 1d 2:46:36 Standby binding state: Map messages: 1 Release messages: 0 Label Prefix 301136 10.255.107.232/32 State: Active Age: 1d 2:46:36 Standby binding state: Map messages: 1 Release messages: 0 Label Prefix 3 10.255.107.234/32 State: Active Age: 1d 2:46:36 Standby binding state: Map messages: 1 Release messages: 0 Label Prefix 302480 10.255.107.236/32 State: Active Age: 1d 2:46:36 Standby binding state: Map messages: 1 Release messages: 0 Output label database, 10.255.107.236:0--10.255.107.234:0 Label Prefix 299904 10.255.107.230/32 State: Active Age: 1d 2:46:36 299936 10.255.107.232/32 State: Active Age: 1d 2:46:36 299872 10.255.107.234/32 State: Active Age: 1d 2:46:36 3 10.255.107.236/32 State: Active Age: 1d 2:46:36 299952 P2MP root-addr 10.255.107.230, lsp-id 16777217 State: Active Age: 1d 2:46:36
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 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
show ldp database p2mp (primary)
user@host> show ldp database p2mp extensive
This command is only supported on Junos OS.
Input label database, 10.255.107.232:0--10.255.107.236:0 Label Prefix 569649 P2MP root-addr 10.255.107.232, lsp-id 16777217 State: Active Age: 2d 6:41:46 Output label database, 10.255.107.232:0--10.255.107.236:0 Input label database, 10.255.107.232:0--10.255.107.238:0 Output label database, 10.255.107.232:0--10.255.107.238:0 Label Prefix 299888 P2MP root-addr 10.255.107.230, lsp-id 16777217 State: Active Age: 2d 6:41:35
show ldp database p2mp (standby)
user@host> show ldp database p2mp extensive
This command is only supported on Junos OS.
Input label database, 10.255.107.236:0--10.255.107.232:0 Label Prefix 299968 P2MP root-addr 10.255.107.230, lsp-id 16777217 State: Active Age: 4d 22:21:57 Standby binding state: Map messages: 1 Release messages: 0 Output label database, 10.255.107.236:0--10.255.107.232:0 Label Prefix 3 P2MP root-addr 10.255.107.232, lsp-id 1 State: Active Age: 4d 22:21:57
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
This command is only supported on Junos OS.
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
This command is only supported on Junos OS.
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 summary
user@host> show ldp database summary Session ID Labels received Labels advertised 10.255.0.1:0--10.255.0.2:0 4 4 10.255.0.1:0--10.255.0.3:0 4 4
show ldp database (Multipoint LDP Recursive FEC)
user@host> show ldp database
Input label database, 192.168.1.2:0--192.168.1.3:0 Labels received: 4 Label Prefix 299840 P2MP root-addr 192.168.1.2, lsp-id 16777217 Output label database, 192.168.1.2:0--192.168.1.3:0 Labels advertised: 4 Label Prefix 16 P2MP root-addr 192.168.1.8, lsp-id 16777217 next-root:192.168.1.4 Input label database, 192.168.1.2:0--192.168.1.4:0 Labels received: 4 Output label database, 192.168.1.2:0--192.168.1.4:0 Labels advertised: 3
Release Information
Command introduced before Junos OS Release 7.4.
summary
option introduced in Junos OS Release 14.2.