Examples
The following
sample output displays the contents of the LIB for the default routing domain:
RP/0/RP0/CPU0:router# show mpls ldp bindings
5.41.0.0/16 , rev 4
local binding: label:IMP-NULL
No remote bindings
5.43.9.98/32 , rev 6
local binding: label:IMP-NULL
No remote bindings
10.10.2.0/24 , rev 12
local binding: label:IMP-NULL
remote bindings :
lsr:10.255.255.255:0, label:16
lsr:10.256.256.256:0, label:IMP-NULL
10.10.3.0/24 , rev 10
local binding: label:IMP-NULL
remote bindings :
lsr:10.255.255.255:0, label:IMP-NULL
lsr:10.256.256.256:0, label:22
22.22.22.22/32 , rev 14
local binding: label:16
remote bindings :
lsr:10.255.255.255:0, label:17
lsr:10.256.256.256:0, label:IMP-NULL
33.33.33.33/32 , rev 2
local binding: label:IMP-NULL
remote bindings :
lsr:10.255.255.255:0, label:18
lsr:10.256.256.256:0, label:23
The following
sample output shows detailed information for the total counts of advertised-to
and remote-binding peers in IP address sort order, with remote bindings for
150.150.150.150/32:
RP/0/RP0/CPU0:router# show mpls ldp bindings 150.150.150.150/32 detail
150.150.150.150/32, rev 2
Local binding: label: IMP-NULL
Advertised to: (6 peers)
120.120.120.120:0 130.130.130.130:0 150.150.150.1:0 150.150.150.2:0
150.150.150.3:0 150.150.150.4:0
Remote bindings: (3 peers)
Peer Label
----------------- --------
120.120.120.120:0 27018
130.130.130.130:0 26017
160.160.160.160:0 27274
The following
sample output specifies a network number and displays labels learned from label
switched router (LSR) 10.255.255.255 for all networks. The
neighbor
keyword is used to suppress the output of remote labels learned from other
neighbors:
RP/0/RP0/CPU0:router# show mpls ldp bindings neighbor 10.255.255.255
10.10.2.0/24 , rev 12
local binding: label:IMP-NULL
remote bindings :
lsr:10.255.255.255, label:16
10.10.3.0/24 , rev 10
local binding: label:IMP-NULL
remote bindings :
lsr:10.255.255.255:0, label:IMP-NULL
22.22.22.22/32 , rev 14
local binding: label:16
remote bindings :
lsr:10.255.255.255:0, label:17
33.33.33.33/32 , rev 2
local binding: label:IMP-NULL
remote bindings :
lsr:10.255.255.255:0, label:18
44.44.44.44/32 , rev 16
local binding: label:17
remote bindings :
lsr:10.255.255.255:0, label:IMP-NULL
This table
describes the significant fields shown in the display.
Table 2. show mpls ldp
bindings and show mpls ldp bindings neighbor Command Field Descriptions
Field
|
Description
|
a.b.c.d/n
|
IP prefix
and mask for a particular destination (network/mask).
|
rev
|
Revision
number (rev) that is used internally to manage label distribution for this
destination.
|
local
binding
|
Locally
assigned label for a prefix.
|
remote
bindings
|
Outgoing
labels for this destination learned from other LSRs.1 Each item in this list identifies the LSR from which the outgoing
label was learned and reflects the label associated with that LSR. Each LSR in
the transmission path is identified by its LDP identifier.
|
(rewrite)
|
Binding
has been written into MPLS forwarding and is in use.
|
(no route)
|
Route is
not valid. LDP times it out before the local binding is deleted.
|
The following
sample output summarizes the content by using the
summary
keyword:
RP/0/RP0/CPU0:router# show mpls ldp bindings summary
LIB Summary:
Total Prefix : 20
Revision No : Current:34, Advertised:34
Local Bindings : 14
NULL : 10 (implicit:10, explicit:0)
Non-NULL: 4 (lowest:48, highest:51)
Remote Bindings: 24
This table
describes the significant fields shown in the display.
Table 3. show mpls ldp
bindings summary Command Field Descriptions
Field
|
Description
|
Total
Prefix
|
Number of
prefixes (routes) known to LDP LIB. All invalid and timed-out routes display as
no-routes.
|
Revision
No
|
Current
revision number of LIB entries as well as the minimum revision number that has
been advertised to all peers.
|
Local
Bindings
|
Total
number of local bindings, with information on how many of them are Null,
non-null, and lowest/highest label assigned or allocated by LDP.
|
Remote
Bindings
|
Number of
remote bindings.
|
The following
sample output shows the access-list advertisement:
RP/0/RP0/CPU0:router# show mpls ldp bindings advertisement-acls
Advertisement Spec:
Prefix ACL = 'pfx_11'
Prefix ACL = 'pfx_22'
Prefix ACL = 'pfx_40_1'; Peer ACL = 'peer_11'
5.41.0.0/16 , rev 82
11.11.11.11/32 , rev 69
Advert ACL(s): Prefix ACL 'pfx_11'
20.20.20.20/32 , rev 83
22.22.22.22/32 , rev 78
Advert ACL(s): Prefix ACL 'pfx_22'
40.1.1.0/24 , rev 79
Advert ACL(s): Prefix ACL 'pfx_40_1'; Peer ACL 'peer_11'
This table
describes the significant fields shown in the display.
Table 4. show mpls ldp
bindings advertisement-acls Command Field Descriptions
Field
|
Description
|
Advertisement Spec
|
Lists all
prefix and peer access-lists used as outbound label advertisement control.
|
Advert
ACL(s)
|
Lists the
first matching rule (if any) for the prefix entry for outbound label
advertisement control (for prefix-acl).
|
The following
sample output shows all the prefixes in the LDP database using the
brief
keyword:
RP/0/RP0/CPU0:router# show mpls ldp bindings brief
Prefix Local Advertised Remote Bindings
Label (peers) (peers)
------------------ -------- ---------- ---------------
1.1.2.2/32 - 0 1
1.2.3.4/32 16010 396 0
4.4.4.4/32 16004 396 3
10.0.0.0/24 19226 396 395
The following
sample output shows that the binding matches with a local label:
RP/0/RP0/CPU0:router# show mpls ldp bindings local-only
10.12.32.2/32, rev 4
Local binding: label: IMP-NULL
No remote bindings
The following
sample output shows that the binding matches with a remote label:
RP/0/RP0/CPU0:router# show mpls ldp bindings remote-only
10.26.4.0/24, rev 0
No local binding
Remote bindings: (1 peers)
Peer Label
----------------- --------
10.6.6.6:0 IMP-NULL
10.43.4.0/24, rev 0
No local binding
Remote bindings: (1 peers)
Peer Label
----------------- --------
10.4.4.4:0 IMP-NULL
10.46.4.0/24, rev 0
No local binding
Remote bindings: (2 peers)
Peer Label
----------------- --------
10.4.4.4:0 IMP-NULL
10.6.6.6:0 IMP-NULL