LDP Command Reference

Command Hierarchies

LDP Commands

config
— router [router-name]
[no] ldp
prefix-exclude policy-name [policy-name...(up to 5 max)]
[no] shutdown
export policy-name [policy-name...(up to 5 max)]
— no export
import policy-name [policy-name...(up to 5 max)]
— no import
hello timeout factor
— no hello
[no] interface ip-int-name
hello timeout factor
— no hello
keepalive timeout factor
— no keepalive
local-lsr-id {system | interface}
[no] shutdown
transport-address {system | interface}
keepalive timeout factor
— no keepalive
transport-address {system | interface}
[no] peer ip-address
authentication-key {authentication-key | hash-key} [hash | hash2]
[no] shutdown
hello timeout factor
— no hello
keepalive timeout factor
— no keepalive
[no] peer ip-address
[no] bfd-enable
hello timeout factor
— no hello
keepalive timeout factor
— no keepalive
local-lsr-id interface-name
— no local-lsr-id
[no] shutdown

Show Commands

show
— router [router-instance]
— ldp
auth-keychain [keychain]
bindings [fec-type fec-type [detail]] [session ip-addr[:label-space]]
bindings label-type start-label [end-label]
bindings {prefix ip-prefix/mask [detail]} [session ip-addr[:label-space]]
bindings active [prefix ip-prefix/mask]
bindings vc-type vc-type [vc-id vc-id [session ip-addr[:label-space]]]
bindings service-id service-id [detail]
discovery [{peer [ip-address]} | {interface [ip-int-name]}] [state state] [detail]
interface [ip-int-name | ip-address] [detail]
peer [ip-address] [detail]
peer-parameters peer-ip-address
session [ip-addr[:label-space]] [detail | statistics [packet-type]]
status

Clear Commands

clear
— router [router-instance]
— ldp
interface ip-int-name [statistics]
peer ip-address [statistics]
session ip-addr[:label-space] [statistics]

Debug Commands

[no] debug
— router [router-instance]
[no] ldp
[no] interface interface-name
[no] event
[no] messages
[no] packet
hello [detail]
— no hello
[no] peer ip-address
[no] event
[no] bindings
[no] messages
[no] packet
hello [detail]
— no hello
init [detail]
— no init
[no] keepalive
label [detail]
— no label

Command Descriptions

Configuration Commands

Generic Commands

shutdown

Syntax 
[no] shutdown
Context 
config>router>ldp
config>router>ldp>if-params>interface
config>router>ldp>targ-session>peer
config>router>ldp>aggregate-prefix-match
Description 

This command administratively disables an entity. When disabled, an entity does not change, reset, or remove any configuration settings or statistics.

The operational state of the entity is disabled as well as the operational state of any entities contained within. Many objects must be shut down before they can be deleted.

The no form of this command administratively enables an entity.

Unlike other commands and parameters where the default state is not indicated in the configuration file, the shutdown and no shutdown states are always indicated in system-generated configuration files.

Default 

no shutdown

LDP Global Commands

ldp

Syntax 
[no] ldp
Context 
config>router
Description 

This command creates the context to configure an LDP protocol instance.

When an LDP instance is created, the protocol is enabled (in the no shutdown state). To suspend the LDP protocol, use the shutdown command. Configuration parameters are not affected.

The no form of the command deletes the LDP protocol instance, removing all associated configuration parameters. The LDP instance must first be disabled with the shutdown command before being deleted.

Default 

n/a — LDP must be explicitly enabled

aggregate-prefix-match

Syntax 
[no] aggregate-prefix-match
Context 
config>router>ldp
Description 

This command enables LDP to use the aggregate prefix match function rather than requiring an exact prefix match.

When this command is enabled and an LSR receives a FEC-label binding from an LDP neighbor for a prefix-address FEC element, FEC1, it will install the binding in the LDP FIB if:

  1. the routing table (RIB) contains an entry that matches FEC1. Matching can either be a longest IP match of the FEC prefix or an exact match.
  2. the advertising LDP neighbor is the next hop to reach FEC1

When the FEC-label binding has been installed in the LDP FIB, LDP programs an NHLFE entry in the egress data path to forward packets to FEC1. LDP also advertises a new FEC-label binding for FEC1 to all its LDP neighbors.

When a new prefix appears in the RIB, LDP checks the LDP FIB to determine if this prefix is a closer match for any of the installed FEC elements. If a closer match is found, this may mean that the LSR used as the next hop will change; if so, the NHLFE entry for that FEC must be changed.

When a prefix is removed from the RIB, LDP checks the LDP FIB for all FEC elements that matched this prefix to determine if another match exists in the routing table. If another match exists, LDP must use it. This may mean that the LSR used as the next hop will change; if so, the NHLFE entry for that FEC must be changed. If another match does not exist, the LSR removes the FEC binding and sends a label withdraw message to its LDP neighbors.

If the next hop for a routing prefix changes, LDP updates the LDP FIB entry for the FEC elements that matched this prefix. It also updates the NHLFE entry for the FEC elements.

The no form of this command disables the use of the aggregate prefix match function. LDP then only performs an exact prefix match for FEC elements.

Default 

no aggregate-prefix-match

prefix-exclude

Syntax 
prefix-exclude policy-name [policy-name …(up to 5 max)]
no prefix-exclude
Context 
config>router>ldp>aggregate-prefix-match
Description 

This command specifies the policy name containing the prefixes to be excluded from the aggregate prefix match function. Against each excluded prefix, LDP performs an exact match of a specific FEC element prefix, rather than a longest prefix match of one or more LDP FEC element prefixes, when it receives a FEC-label binding or when a change to the prefix occurs in the routing table.

The no form of this command removes all policies from the configuration; therefore, no prefixes are excluded.

Default 

no prefix-exclude

Parameters 
policy-name—
specifies the import route policy name. Allowed values are any string up to 32 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

export

Syntax 
export policy-name [policy-name …(up to 5 max)]
no export
Context 
config>router>ldp
Description 

This command specifies export route policies that determine which routes are exported to LDP neighbors. Configuring an export policy allows the LSR (Label Switch Router) to advertise addresses other than the system IP address. Policies are configured in the config>router>policy-options context. Refer to the “Route Policies” section in the 7705 SAR OS Router Configuration Guide.

If no export policy is specified, non-LDP routes will not be exported from the routing table manager to LDP, and only LDP-learned routes will be exported to LDP neighbors.

If multiple policy names are specified, the policies are evaluated in the order they are specified. The first policy that matches is applied. If multiple export commands are issued, the last command entered will override the previous command. A maximum of five policy names can be specified. The specified name(s) must already be defined.

The no form of the command removes all policies from the configuration.

Default 

no export

Parameters 
policy-name—
specifies the export route policy name. Allowed values are any string up to 32 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

graceful-restart

Syntax 
[no] graceful-restart
Context 
config>router>ldp
Description 

This command enables graceful restart helper.

The no form of the command disables graceful restart.

Default 

graceful-restart

maximum-recovery-time

Syntax 
maximum-recovery-time interval
no maximum-recovery-time
Context 
config>router>ldp>graceful-restart
Description 

This command configures the local maximum recovery time, which is the time (in seconds) that the sender of the TLV would like the receiver to wait, after detecting the failure of LDP communication with the sender.

The no form of the command returns the default value.

Default 

120

Parameters 
interval—
specifies the maximum length of recovery time, in seconds
Values—
15 to 1800

neighbor-liveness-time

Syntax 
neighbor-liveness-time interval
no neighbor-liveness-time
Context 
config>router>ldp>graceful-restart
Description 

This command configures the neighbor liveness time, which is the time (in seconds) that the LSR is willing to retain its MPLS forwarding state. The time should be long enough to allow the neighboring LSRs to resynchronize all the LSPs in a graceful manner, without creating congestion in the LDP control plane.

The no form of the command returns the default value.

Default 

120

Parameters 
interval—
specifies the length of time, in seconds
Values—
5 to 300

import

Syntax 
import policy-name [policy-name …(up to 5 max)]
no import
Context 
config>router>ldp
Description 

This command specifies import route policies that determine which routes are accepted from LDP neighbors. Policies are configured in the config>router>policy-options context. Refer to the “Route Policies” section in the 7705 SAR OS Router Configuration Guide.

If no import policy is specified, LDP accepts all routes from configured LDP neighbors. Import policies can be used to limit or modify the routes accepted and their corresponding parameters and metrics.

If multiple policy names are specified, the policies are evaluated in the order they are specified. The first policy that matches is applied. If multiple import commands are issued, the last command entered will override the previous command. A maximum of five policy names can be specified. The specified name(s) must already be defined.

The no form of the command removes all policies from the configuration.

Default 

no import

Parameters 
policy-name—
specifies the import route policy name. Allowed values are any string up to 32 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

hello

Syntax 
hello timeout factor
no hello
Context 
config>router>ldp>interface-parameters
config>router>ldp>if-params>interface
config>router>ldp>targeted-session
config>router>ldp>targ-session>peer
Description 

This command configures the hold time. This is the time interval to wait before declaring a neighbor down. The factor parameter derives the hello interval.

Hold time is local to the system and is sent in the hello messages to the neighbor. Hold time cannot be less than three times the hello interval. The hold time can be configured globally (applies to all LDP interfaces) or per interface. The most specific value is used.

When an LDP session is being set up, the hold time is negotiated to the lower of the two peers. Once an operational value is agreed upon, the hello factor is used to derive the value of the hello interval.

The no form of the command:

  1. at the interface-parameters and targeted-session levels, sets the hello timeout and the hello factor to the default values
  2. at the interface level, sets the hello timeout and the hello factor to the value defined under the interface-parameters level
  3. at the peer level, sets the hello timeout and the hello factor to the value defined under the targeted-session level
Default 

The default value is dependent upon the CLI context. Table 27 lists the hello timeout factor default values.

Table 27:  Hello Timeout Factor Default Values  

Context

Timeout

Factor

config>router>ldp>interface-parameters

15

3

config>router>ldp>targeted-session

45

3

config>router>ldp>if-params>interface

Inherits values from interface-parameters context

config>router>ldp>targ-session>peer

Inherits values from targeted-session context

Parameters 
timeout—
configures the time interval, in seconds, that LDP waits before declaring a neighbor down
Values—
1 to 65535
factor—
specifies the number of keepalive messages that should be sent on an idle LDP session in the hello timeout interval
Values—
1 to 255

keepalive

Syntax 
keepalive timeout factor
no keepalive
Context 
config>router>ldp>interface-parameters
config>router>ldp>if-params>interface
config>router>ldp>targeted-session
config>router>ldp>targ-session>peer
Description 

This command configures the time interval, in seconds, that LDP waits before tearing down the session. The factor parameter derives the keepalive interval.

If no LDP messages are exchanged for the configured time interval, the LDP session is torn down. Keepalive timeout is usually three times the keepalive interval. To maintain the session permanently, regardless of the activity, set the value to zero.

When an LDP session is being set up, the keepalive timeout is negotiated to the lower of the two peers. Once a operational value is agreed upon, the keepalive factor is used to derive the value of the keepalive interval.

The no form of the command:

  1. at the interface-parameters and targeted-session levels, sets the keepalive timeout and the keepalive factor to the default value
  2. at the interface level, sets the keepalive timeout and the keepalive factor to the value defined under the interface-parameters level
  3. at the peer level, sets the keepalive timeout and the keepalive factor to the value defined under the targeted-session level
Default 

The default value is dependent upon the CLI context. Table 28 lists the keepalive timeout factor default values.

Table 28:  Keepalive Timeout Factor Default Values  

Context

Timeout

Factor

config>router>ldp>interface-parameters

30

3

config>router>ldp>targeted-session

40

4

config>router>ldp>if-params>interface

Inherits values from interface-parameters context

config>router>ldp>targ-session>peer

Inherits values from targeted-session context

Parameters 
timeout—
configures the time interval, expressed in seconds, that LDP waits before tearing down the session
Values—
1 to 65535
factor—
specifies the number of keepalive messages, expressed as a decimal integer, that should be sent on an idle LDP session in the keepalive timeout interval
Values—
1 to 255

tunnel-down-damp-time

Syntax 
tunnel-down-damp-time seconds
no tunnel-down-damp-time
Context 
config>router>ldp
Description 

This command specifies the time interval, in seconds, that LDP waits before posting a tunnel down event to the Tunnel Table Manager (TTM).

When LDP can no longer resolve a FEC and deactivates it, it deprograms the NHLFE in the data path. It will, however, delay deleting the LDP tunnel entry in the TTM until the tunnel-down-damp-time timer expires. This means that users of the LDP tunnel, such as SDPs (for all services) and BGP (for Layer 3 VPNs), will not be notified immediately. Traffic is still blackholed because the NHLFE has been deprogrammed.

If the FEC gets resolved before the tunnel-down-damp-time timer expires, LDP programs the IOM with the new NHLFE and posts a tunnel modify event to the TTM, updating the dampened entry in the TTM with the new NHLFE information.

If the FEC does not get resolved and the tunnel-down-damp-time timer expires, LDP posts a tunnel down event to the TTM, which deletes the LDP tunnel.

The no form of the command reverts the damp timer value back to the default value of 3. If the timer value is set to 0, tunnel down events are not dampened but are reported immediately.

Default 

3

Parameters 
seconds—
the time interval that LDP waits before posting a tunnel down event to the TTM
Values—
0 to 20

Interface Parameters Commands

interface-parameters

Syntax 
interface-parameters
Context 
config>router>ldp
Description 

This command enables the context to configure LDP interfaces and parameters applied to LDP interfaces.

interface

Syntax 
[no] interface ip-int-name
Context 
config>router>ldp>interface-parameters
Description 

This command enables LDP on the specified IP interface.

The no form of the command deletes the LDP interface and all configuration information associated with the LDP interface.

The LDP interface must be disabled using the shutdown command before it can be deleted.

Parameters 
ip-int-name—
specifies an existing interface. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

local-lsr-id

Syntax 
local-lsr-id {system | interface}
no local-lsr-id
Context 
config>router>ldp>if-params>interface
Description 

This command enables the use of the address of the link LDP interface as the LSR ID in order to establish an LDP adjacency and session with a directly connected LDP peer.

By default, the LDP session uses the system interface address as the LSR ID. This means that targeted LDP (T-LDP) and interface LDP share a common LDP TCP session and therefore a common LDP label space. The system interface must be configured on the router or the LDP protocol will not come up on the node. At initial configuration, the LDP session to the peer remains down while the interface is down. If the user changes the LSR ID while the LDP session is up, LDP immediately tears down the session and attempts to re-establish it using the new LSR ID. If the interface used for the local LSR ID goes down, then the LDP session will also go down.

The interface option is the recommended setting when static route-LDP synchronization is enabled.

When the interface option is selected, the transport connection (TCP) for the link LDP session configured by the transport-address command is automatically set to interface. Having both the local-lsr-id and transport address set to the local interface creates two TCP sessions to the peer and therefore two different LDP label spaces: one to the interface IP address for link LDP (L-LDP) and one to the system IP address for T-LDP.

The no form of the command resets the local-lsr-id to the default value.

Default 

system

Parameters 
system —
specifies that the system IP address is used to set up the LDP session between neighbors
interface—
specifies that the IP interface address is used to set up the LDP session between neighbors

transport-address

Syntax 
transport-address {system | interface}
no transport-address
Context 
config>router>ldp>if-params
config>router>ldp>if-params>interface
Description 

This command configures the transport address to be used when setting up the LDP TCP sessions. The transport address can be configured globally (applies to all LDP interfaces) or per interface. The most specific value is used.

With the transport-address command, you can set up the LDP interface to the connection that can be set to the interface address or the system address. However, there can be an issue of which address to use when there are parallel adjacencies. This address selection situation can also occur when there is a link and a targeted adjacency, since targeted adjacencies request the session to be set up only to the system IP address.

Note that the transport-address value should not be interface if multiple interfaces exist between two LDP neighbors.

Depending on the first adjacency to be formed, the TCP endpoint is chosen. In other words, if one LDP interface is set up as transport-address interface and another as transport-address system, then, depending on which adjacency was set up first, the TCP endpoint addresses are determined. After that, because the hello contains the LSR ID, the LDP session can be checked to verify that it is set up and then the adjacency can be matched to the session.

The no form of the command:

  1. at the global level, sets the transport address to the default value
  2. at the interface level, sets the transport address to the value defined under the global level
Default 

system

Parameters 
interface—
specifies that the IP interface address is used to set up the LDP session between neighbors. The transport address interface cannot be used if multiple interfaces exist between two neighbors, since only one LDP session is set up between two neighbors.
system—
specifies that the system IP address is used to set up the LDP session between neighbors

Targeted Session Commands

targeted-session

Syntax 
targeted-session
Context 
config>router>ldp
Description 

This command configures targeted LDP sessions. Targeted sessions are LDP sessions between non-directly-connected peers. Hello messages are sent directly to the peer platform instead of to all the routers on this subnet multicast address.

The discovery messages for an indirect LDP session are addressed to the specified peer and not to the multicast address.

Default 

n/a

disable-targeted-session

Syntax 
[no] disable-targeted-session
Context 
config>router>ldp>targeted-session
Description 

This command disables support for targeted sessions. Targeted sessions are LDP sessions between non-directly-connected peers. The discovery messages for an indirect LDP session are addressed to the specified peer and not to the multicast address.

The no form of the command enables the setup of any targeted sessions.

Default 

no disable-targeted-session

peer

Syntax 
[no] peer ip-address
Context 
config>router>ldp>targeted-session
Description 

This command configures parameters for an LDP peer.

Default 

n/a

Parameters 
ip-address—
specifies the LDP peer in dotted-decimal notation

bfd-enable

Syntax 
bfd-enable
Context 
config>router>ldp>targeted-session>peer
Description 

This command enables the use of bidirectional forwarding detection to control the state of the associated T-LDP session.

The no form of this command removes BFD from the associated T-LDP protocol adjacency.

Default 

n/a

local-lsr-id

Syntax 
local-lsr-id interface-name
no local-lsr-id
Context 
config>router>ldp>targeted-session>peer
Description 

This command enables the use of the address of a specific interface as the LSR ID in order to establish a targeted LDP (T-LDP) adjacency and session with an LDP peer. The interface can be a regular interface or a loopback interface, including the system interface.

By default, a T-LDP session uses the system interface address as the LSR ID. This means that T-LDP and interface LDP share a common LDP TCP session and therefore a common LDP label space. The system interface must be configured on the router or the LDP protocol will not come up on the node. At initial configuration, the LDP session to the peer remains down while the interface is down. If the user changes the LSR ID while the LDP session is up, LDP immediately tears down the session and attempts to re-establish it using the new LSR ID. If the interface used for the local LSR ID goes down, then the LDP session will also go down.

The user-configured LSR ID is used for extended peer discovery to establish the T-LDP hello adjacency. It is also used as the transport address for the LDP TCP session when it is bootstrapped by the T-LDP hello adjacency. The user-configured LSR ID is not used in basic peer discovery to establish a link-level LDP hello adjacency.

The no form of the command resets the local-lsr-id to the default value, which means that the system interface address is used as the LSR ID.

Default 

no local-lsr-id

Parameters 
interface-name—
specifies the name, up to 32 characters in length, of the network IP interface. An interface name cannot be in the form of an IP address. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

Peer Parameters Commands

peer-parameters

Syntax 
peer-parameters
Context 
config>router>ldp
Description 

This command enables the context to configure peer specific parameters.

peer

Syntax 
[no] peer ip-address
Context 
config>router>ldp>peer-parameters
Description 

This command configures parameters for an LDP peer.

Default 

n/a

Parameters 
ip-address—
specifies the LDP peer in dotted-decimal notation

authentication-key

Syntax 
authentication-key {authentication-key | hash-key} [hash | hash2]
no authentication-key
Context 
config>router>ldp>peer-parameters>peer
Description 

This command specifies the authentication key to be used between LDP peers before establishing sessions. Authentication uses the MD5 message-based digest.

The no form of this command disables authentication.

Default 

n/a

Parameters 
authentication-key—
specifies the authentication key. Allowed values are any string up to 16 characters long (unencrypted) composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
hash-key—
specifies the hash key. Allowed values are any string up to 33 characters long composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

This is useful when a user must configure the parameter; however, for security purposes, the actual unencrypted key value is not provided.

hash—
specifies that the key is entered and stored on the node in encrypted form
hash2—
specifies that the key is entered and stored on the node in a more complex encrypted form
Note:

If neither the hash or hash2 keyword is specified, the key is entered in clear text. However, for security purposes, the key is stored on the node using hash encryption.

Show Commands

auth-keychain

Syntax 
auth-keychain [keychain]
Context 
show>router>ldp
Description 

This command displays LDP sessions using a particular authentication key chain.

Parameters 
keychain—
specifies an existing keychain name
Output 

The following output is an example of LDP sessions using an authentication key chain.

Sample Output
*A:ALU-48>config>router>ldp# show router ldp auth-keychain
===============================================================================
LDP Peers
===============================================================================
Peer            TTL Security Min-TTL-Value Authentication Auth key chain
-------------------------------------------------------------------------------
10.20.1.3       Disabled     n/a           Enabled        eta_keychain1
-------------------------------------------------------------------------------
No. of Peers: 1
===============================================================================
*A:ALU-48>config>router>ldp#

bindings

Syntax 
bindings [fec-type fec-type [detail]] [session ip-addr[:label-space]]
bindings label-type start-label [end-label]
bindings {prefix ip-prefix/mask [detail]} [session ip-addr[:label-space]]
bindings active [prefix ip-prefix/mask]
bindings vc-type vc-type [vc-id vc-id [session ip-addr[:label-space]]]
bindings service-id service-id [detail]
Context 
show>router>ldp
Description 

This command displays the contents of the label information base.

Parameters 
ip-addr—
specifies the IP address of the next hop
Values—
a.b.c.d
fec-type—
specifies the forwarding class type
Values—
prefixes, services
ip-prefix—
specifies the IP prefix in dotted-decimal notation
Values—
a.b.c.d (host bits must be 0)
mask—
specifies the 32-bit address mask used to indicate the bits of an IP address that are being used for the subnet address
Values—
0 to 32
label-space—
specifies the label space identifier that the router is advertising on the interface
Values—
0 to 65535
label-type—
specifies the label type to display
Values—
ingress-label, egress-label
start-label—
specifies a label value to begin the display
Values—
16 to 1048575
end-label—
specifies a label value to end the display
Values—
17 to 1048575
vc-type—
specifies the VC type to display
Values—
atmvcc, atmvpc, cesopsn, cesopsn-cas, satop-e1, satop-t1, ethernet, ipipe
vc-id—
specifies the VC ID to display
Values—
1 to 4294967295
service-id—
specifies the service ID number to display
Values—
1 to 2147483647
Output 

The following output is an example of LDP bindings information, and Table 29 describes the fields. Following the table are output examples for:

  1. LDP bindings detail
  2. LDP bindings session
  3. LDP bindings active
Sample Output - show router ldp bindings
A:cpm-a# show router ldp bindings
===============================================================================
LDP LSR ID: 1.1.1.30
===============================================================================
Legend: U - Label In Use, N - Label Not In Use, W - Label Withdrawn
        S - Status Signaled Up,  D - Status Signaled Down
        E - Epipe Service, V - VPLS Service, M - Mirror Service
        A - Apipe Service, F - Fpipe Service, I - IES Service, R - VPRN service
        P - Ipipe Service, C - Cpipe Service
        TLV - (Type, Length: Value)
===============================================================================
LDP Prefix Bindings
===============================================================================
Prefix             Peer            IngLbl  EgrLbl EgrIntf/LspId EgrNextHop
-------------------------------------------------------------------------------
1.1.1.30/32        1.1.1.33        131071U   --     --            --
1.1.1.30/32        1.1.1.57        131071U   --     --            --
1.1.1.33/32        1.1.1.33          --    131071 1/2/3:1       10.4.1.33
1.1.1.33/32        1.1.1.57        131061U 131059   --            --
1.1.1.57/32        1.1.1.33        131060U 131067   --            --
1.1.1.57/32        1.1.1.57          --    131071 LspId 1         --
1.1.1.58/32        1.1.1.33        131059U 131066   --            --
1.1.1.58/32        1.1.1.57        131059N 131070 LspId 1         --
-------------------------------------------------------------------------------
No. of Prefix Bindings: 8
 
===============================================================================
LDP Service FEC 128 Bindings
===============================================================================
Type   VCId       SvcId      SDPId  Peer            IngLbl  EgrLbl  LMTU  RMTU
-------------------------------------------------------------------------------
E-Eth  100        1          1      1.1.1.57        131069U 131068D 1500  1500
E-Eth  101        2          1      1.1.1.57          --    131067D 1500  1500
E-Eth  102        3          1      1.1.1.57        131067U 131066  1500  1500
E-Eth  103        4          1      1.1.1.57        131066W 131065  1500  1500
E-Eth  104        5          1      1.1.1.57        131065U   --    1500  0
E-Eth  105        5          1      1.1.1.57        131064U   --    1500  0
E-Eth  106        6          1      1.1.1.57        131063U 131064D 1500  1500
E-Eth  107        7          1      1.1.1.57        131062U   --    1500  0
-------------------------------------------------------------------------------
No. of VC Labels: 8
 
===============================================================================
LDP Service FEC 129 Bindings
===============================================================================
AGI                                 SAII                    TAII
Type              SvcId      SDPId  Peer            IngLbl  EgrLbl  LMTU  RMTU
-------------------------------------------------------------------------------
No Matching Entries Found
===============================================================================
A:cpm-a#
Table 29:  LDP Bindings Output Fields   

Label

Description

Legend

U: Label In Use

N: Label Not In Use

W: Label Withdrawn

S: Status Signaled Up

D: Status Signaled Down

E: Epipe service

A: Apipe service

C: Cpipe service

P: Ipipe service

TLV: (Type, Length: Value)

Type

The service type exchanging labels in the SDP. The possible types displayed are Epipe, Spoke, and Unknown.

VCId

The value used by each end of an SDP tunnel to identify the VC

SvcID

Identifies the service in the service domain

SDPId

Identifies the SDP in the service domain

Peer

The IP address of the peer

IngLbl

The ingress LDP label

U — indicates that the label is in use

R — indicates that the label has been released

EgrLbl

The egress LDP label

LMTU

The local MTU value

RMTU

The remote MTU value

No. of Prefix Bindings

The total number of LDP bindings on the router

EgrIntf/LspId

The egress interface LSP ID

EgrNextHop

The egress next-hop address

No. of VC Labels

The total number of VC labels

No. of Service Bindings

The total number of service bindings

AGI Type

The address group identifier (AGI)

SAII Peer

The source attachment individual identifier (SAII)

TAII EgrLbl

The target attachment individual identifier (TAII)

Vc-switching

Not applicable – always indicates no

Egr. Flags

Specifies egress flag, if any

Egr. Ctl Word

Indicates whether egress control words are used

Egr. Status Bits

Indicates whether egress status bits are supported

Igr. Flags

Specifies ingress flag, if any

Igr. Ctl Word

Indicates whether ingress control words are used

Igr. Status Bits

Indicates whether ingress status bits are supported

Op

The operation performed on the ingress or egress label in the LDP stack (push or pop)

Sample Output - show router ldp bindings detail
A:cpm-a# show router ldp bindings detail
================================================================
LDP LSR ID: 1.1.1.30
================================================================
Legend: U - Label In Use, N - Label Not In Use, W - Label Withdrawn
        S - Status Signaled Up,  D - Status Signaled Down
        E - Epipe Service, V - VPLS Service, M - Mirror Service
        A - Apipe Service, F - Fpipe Service, I - IES Service, R - VPRN service
        P - Ipipe Service, C - Cpipe Service
        TLV - (Type, Length: Value)
================================================================
LDP Prefix Bindings
================================================================
-------------------------------------------------------------------------------
Prefix             : 1.1.1.30/32
-------------------------------------------------------------------------------
Ing Lbl            : 131071U               Peer              : 1.1.1.33
Egr. Flags         : None                  Ing. Flags        : None
-------------------------------------------------------------------------------
Prefix             : 1.1.1.30/32
-------------------------------------------------------------------------------
Ing Lbl            : 131071U               Peer              : 1.1.1.57
Egr. Flags         : None                  Ing. Flags        : None
-------------------------------------------------------------------------------
Prefix             : 1.1.1.33/32
-------------------------------------------------------------------------------
Ing Lbl            :   --                  Peer              : 1.1.1.33
Egr Lbl            : 131071                Egr Int/LspId     : 1/2/3:1
EgrNextHop         : 10.4.1.33
Egr. Flags         : None                  Ing. Flags        : None
-------------------------------------------------------------------------------
Prefix             : 1.1.1.33/32
-------------------------------------------------------------------------------
Ing Lbl            : 131061U               Peer              : 1.1.1.57
Egr Lbl            : 131059                Egr Int/LspId     :   --
EgrNextHop         :   --
Egr. Flags         : None                  Ing. Flags        : None
-------------------------------------------------------------------------------
Prefix             : 1.1.1.57/32
-------------------------------------------------------------------------------
Ing Lbl            : 131060U               Peer              : 1.1.1.33
Egr Lbl            : 131067                Egr Int/LspId     :   --
EgrNextHop         :   --
Egr. Flags         : None                  Ing. Flags        : None
-------------------------------------------------------------------------------
Prefix             : 1.1.1.57/32
-------------------------------------------------------------------------------
Ing Lbl            :   --                  Peer              : 1.1.1.57
Egr Lbl            : 131071                Egr Int/LspId     : LspId 1
EgrNextHop         :   --
Egr. Flags         : None                  Ing. Flags        : None
Lsp Name           : lsp_both2
-------------------------------------------------------------------------------
Prefix             : 1.1.1.58/32
-------------------------------------------------------------------------------
Ing Lbl            : 131059U               Peer              : 1.1.1.33
Egr Lbl            : 131066                Egr Int/LspId     :   --
EgrNextHop         :   --
Egr. Flags         : None                  Ing. Flags        : None
-------------------------------------------------------------------------------
Prefix             : 1.1.1.58/32
-------------------------------------------------------------------------------
Ing Lbl            : 131059N               Peer              : 1.1.1.57
Egr Lbl            : 131070                Egr Int/LspId     : LspId 1
EgrNextHop         :   --
Egr. Flags         : None                  Ing. Flags        : None
Lsp Name           : lsp_both2
================================================================
No. of Prefix Bindings: 8
 
================================================================
LDP Service Bindings
================================================================
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 100
SvcId              : 1                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : No
LMTU               : 1500                  RMTU              : 1500
Egr. Lbl           : 131068D               Egr. Ctl Word     : No
Egr. Flags         : None                  Egr. Status Bits  : Supported (0x16)
Ing. Lbl           : 131069U               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x0)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 101
SvcId              : 2                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : No
LMTU               : 1500                  RMTU              : 1500
Egr. Lbl           : 131067D               Egr. Ctl Word     : Yes
Egr. Flags         : None                  Egr. Status Bits  : Supported (0x16)
Ing. Lbl           :   --                  Ing. Ctl Word     : No
Ing. Flags         : Released              Ing. Status Bits  : N/A
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 102
SvcId              : 3                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : No
LMTU               : 1500                  RMTU              : 1500
Egr. Lbl           : 131066                Egr. Ctl Word     : No
Egr. Flags         : None                  Egr. Status Bits  : N/A
Ing. Lbl           : 131067U               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x0)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 103
SvcId              : 4                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : No
LMTU               : 1500                  RMTU              : 1500
Egr. Lbl           : 131065                Egr. Ctl Word     : No
Egr. Flags         : None                  Egr. Status Bits  : N/A
Ing. Lbl           : 131066W               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x16)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 104
SvcId              : 5                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : Yes 1:105
LMTU               : 1500                  RMTU              : 0
Egr. Lbl           :   --                  Egr. Ctl Word     : No
Egr. Flags         : None                  Egr. Status Bits  : N/A
Ing. Lbl           : 131065U               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x18)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 105
SvcId              : 5                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : Yes 1:104
LMTU               : 1500                  RMTU              : 0
Egr. Lbl           :   --                  Egr. Ctl Word     : No
Egr. Flags         : None                  Egr. Status Bits  : N/A
Ing. Lbl           : 131064U               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x18)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 106
SvcId              : 6                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : No
LMTU               : 1500                  RMTU              : 1500
Egr. Lbl           : 131064D               Egr. Ctl Word     : Yes
Egr. Flags         : None                  Egr. Status Bits  : Supported (0x16)
Ing. Lbl           : 131063U               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x0)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Type               : E-Eth                 VcId              : 107
SvcId              : 7                     SdpId             : 1
Peer Address       : 1.1.1.57              Vc-switching      : No
LMTU               : 1500                  RMTU              : 0
Egr. Lbl           :   --                  Egr. Ctl Word     : No
Egr. Flags         : None                  Egr. Status Bits  : N/A
Ing. Lbl           : 131062U               Ing. Ctl Word     : No
Ing. Flags         : None                  Ing. Status Bits  : Supported (0x0)
================================================================
No. of VC Labels: 8
================================================================
A:cpm-a#
Sample Output - show router ldp bindings session
ALU-12# show router ldp bindings session 10.10.10.104
===============================================================================
LDP LSR ID: 10.10.10.103
===============================================================================
Legend:  U - Label In Use,  R - Label Released
===============================================================================
LDP Prefix Bindings
===============================================================================
Prefix             Peer            IngLbl  EgrLbl EgrIntf       EgrNextHop
-------------------------------------------------------------------------------
No Matching Entries Found
 
===============================================================================
LDP Service FEC 128 Bindings
===============================================================================
Type   VCId       SvcId      SDPId  Peer            IngLbl  EgrLbl  LMTU  RMTU
-------------------------------------------------------------------------------
Ukwn   222        Ukwn       Ukwn   10.10.10.104      --    131071  0     0
VPLS   700        700        2      10.10.10.104    131071U 131070  1514  0
-------------------------------------------------------------------------------
No. of Service Bindings: 2
 
===============================================================================
LDP Service FEC 129 Bindings
===============================================================================
AGI                                 SAII                    TAII
Type              SvcId      SDPId  Peer            IngLbl  EgrLbl  LMTU  RMTU
-------------------------------------------------------------------------------
No Matching Entries Found
===============================================================================
ALU-12#
Sample Output - show router ldp bindings active
ALU-12# show router ldp bindings active
===============================================================================
LDP Prefix Bindings (Active)
===============================================================================
Prefix              Op      IngLbl    EgrLbl    EgrIntf        EgrNextHop
-------------------------------------------------------------------------------
10.20.1.3/32        Push      --      131069    1/1/6          20.1.1.1
10.20.1.10/32       Pop     131069      --        --             --
-------------------------------------------------------------------------------
No. of Prefix Bindings: 2
===============================================================================
ALU-12#

discovery

Syntax 
discovery [{peer [ip-address]} | {interface [ip-int-name]}] [state state] [detail]
Context 
show>router>ldp
Description 

This command displays the status of the interfaces participating in LDP discovery.

Parameters 
ip-address—
specifies the IP address of the peer
ip-int-name—
specifies an existing interface. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
state—
specifies the current operational state of the adjacency
detail—
displays detailed information
Output 

The following outputs are examples of LDP discovery information, and Table 30 describes the fields.

Sample Output - show router ldp discovery
ALU-12# show router ldp discovery
===============================================================================
LDP Hello Adjacencies
===============================================================================
Interface Name                   Local Addr      Peer Addr       AdjType State
-------------------------------------------------------------------------------
N/A                              10.10.10.103    10.10.10.93     Targ    Trying
N/A                              10.10.10.103    10.10.10.104    Targ    Estab
to-104                           10.0.0.103      224.0.0.2       Link    Trying
-------------------------------------------------------------------------------
No. of Hello Adjacencies: 3
===============================================================================
ALU-12#
Sample Output - show router ldp discovery detail
ALU-12# show router ldp discovery detail
===============================================================================
LDP Hello Adjacencies (Detail)
===============================================================================
Peer 10.10.10.93
-------------------------------------------------------------------------------
Local Address      : 10.10.10.103       Peer Address       : 10.10.10.93
Adjacency Type     : Targeted           State              : Trying
 
-------------------------------------------------------------------------------
Peer 10.10.10.104
-------------------------------------------------------------------------------
Local Address      : 10.10.10.103       Peer Address       : 10.10.10.104
Adjacency Type     : Targeted           State              : Established
Up Time            : 0d 18:26:36        Hold Time Remaining: 38
Hello Mesg Recv    : 76616920           Hello Mesg Sent    : 466580812
Remote Cfg Seq No  : 159                Remote IP Address  : 10.10.10.104
Local Cfg Seq No   : 1674451            Local IP Address   : 0.224.173.172
-------------------------------------------------------------------------------
Interface "to-104"
-------------------------------------------------------------------------------
Local Address      : 10.0.0.103         Peer Address       : 224.0.0.2
Adjacency Type     : Link               State              : Trying
 
===============================================================================
ALU-12#
Table 30:  LDP Discovery Output Fields   

Label

Description

Interface Name

The name of the interface

Local Addr

The IP address of the originating (local) router

Peer Addr

The IP address of the peer

Adj Type

The adjacency type between the LDP peer and LDP session

State

Established — indicates that the adjacency is established

Trying — indicates that the adjacency is not yet established

No. of Hello Adjacencies

The total number of hello adjacencies discovered

Up Time

The amount of time the adjacency has been enabled

Hold-Time Remaining

The time left before a neighbor is declared to be down

Hello Mesg Recv

The number of Hello messages received for this adjacency

Hello Mesg Sent

The number of Hello messages that have been sent for this adjacency

Remote Cfg Seq No

The configuration sequence number that was in the Hello message received when this adjacency started up. This configuration sequence number changes when there is a change of configuration.

Remote IP Address

The IP address used on the remote end for the LDP session

Local Cfg Seq No

The configuration sequence number that was used in the Hello message sent when this adjacency started up. This configuration sequence number changes when there is a change of configuration.

Local IP Address

The IP address used locally for the LDP session

interface

Syntax 
interface [ip-int-name | ip-address] [detail]
Context 
show>router>ldp
Description 

This command displays configuration information about LDP interfaces.

Parameters 
ip-int-name—
specifies an existing interface. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
ip-address—
identifies the LDP neighbor by IP address
detail—
displays detailed information
Output 

The following output is an example of LDP interface information, and Table 31 describes the fields.

Sample Output
A:ALU-12# show router ldp interface
===============================================================================
LDP Interfaces
===============================================================================
Interface                        Adm Opr  Hello  Hold  KA     KA      Transport
                                          Factor Time  Factor Timeout Address
-------------------------------------------------------------------------------
i2_1/1                           UpUp   3     15    3      30      System
-------------------------------------------------------------------------------
No. of Interfaces: 1
===============================================================================
A:ALU-12# 
A:ALU-12>show>router>ldp# interface detail
===============================================================================
LDP Interfaces (Detail)
===============================================================================
-------------------------------------------------------------------------------
Interface "back"
-------------------------------------------------------------------------------
Admin State        : Up                  Oper State       : Down
Oper Down Reason   : interfaceDown
Hold Time          : 1000                Hello Factor     : 15
Keepalive Timeout  : 1000                Keepalive Factor : 15
Transport Addr     : System              Last Modified    : 08/08/2007 09:50:15
Active Adjacencies : 0
Tunneling          : Disabled
Lsp Name           : None
 
===============================================================================
A:ALU-12>show>router>ldp#
Table 31:  LDP Interface Output Fields   

Label

Description

Interface

The interface associated with the LDP instance

Adm

Up — indicates that the LDP is administratively enabled

Down — indicates that the LDP is administratively disabled

Opr

Up — indicates that the LDP is operationally enabled

Down — indicates that the LDP is operationally disabled

Hello Factor

The value by which the hello timeout should be divided to give the hello time; that is, the time interval, in seconds, between LDP Hello messages. LDP uses hello messages to discover neighbors and to detect loss of connectivity with its neighbors.

Hold Time

The time interval, in seconds, that LDP waits before declaring a neighbor to be down. Hold time (also known as Hello time) is local to the system and is sent in the hello messages to a neighbor.

KA Factor

The value by which the keepalive timeout should be divided to give the keepalive time; that is, the time interval, in seconds,

between LDP keepalive messages. LDP keepalive messages are sent to keep the LDP session from timing out when no other LDP traffic is being sent between the neighbors.

KA Timeout

The time interval, in seconds, that LDP waits before tearing down a session. If no LDP messages are exchanged during this time interval, the LDP session is torn down. Generally the value is configured to be three times the keepalive time (the time interval between successive LDP keepalive messages).

Transport Address

The transport address entity

No. of Interfaces

The total number of LDP interfaces

Oper Down Reason

The reason for the LSP being in the down state

Active Adjacencies

The number of active adjacencies

Last Modified

The time of the last modification to the LDP interface

Lsp Name

The LSP name

parameters

Syntax 
parameters
Context 
show>router>ldp
Description 

This command displays configuration information about LDP parameters.

Output 

The following output is an example of LDP parameters information, and Table 32 describes the fields.

Sample Output
A:ALU-12# show router ldp parameters
================================================================================
LDP Parameters (LSR ID 10.10.10.103)
================================================================================
-------------------------------------------------------------------------------
Graceful Restart Parameters
-------------------------------------------------------------------------------
Nbor Liveness Time : 120 sec               Max Recovery Time : 120
-------------------------------------------------------------------------------
Interface Parameters
-------------------------------------------------------------------------------
Keepalive Timeout  : 30 sec                Keepalive Factor  : 3
Hold Time          : 15 sec                Hello Factor      : 3
Propagate Policy   : system                Transport Address : system
Deaggregate FECs   : False                 Route Preference  : 9
Label Distribution : downstreamUnsolicited Label Retention   : liberal
Control Mode       : ordered               Loop Detection    : none
 
-------------------------------------------------------------------------------
Targeted Session Parameters
-------------------------------------------------------------------------------
Keepalive Timeout  : 5000 sec              Keepalive Factor  : 255
Hold Time          : 5000 sec              Hello Factor      : 255
Passive Mode       : False                 Targeted Sessions : Enabled
===============================================================================
A:ALU-12#
Table 32:  LDP Parameters Output Fields  

Label

Description

Graceful Restart Parameters

Nbor Liveliness Time

The neighbor liveliness time

Max Recovery Time

The local maximum recovery time

Interface Parameters

Keepalive Timeout

The time interval, in seconds, that LDP waits before tearing down a session. If no LDP messages are exchanged during this time interval, the LDP session is torn down. Generally the value is configured to be three times the keepalive time (the time interval between successive LDP keepalive messages).

Keepalive Factor

The value by which the keepalive timeout should be divided to give the keepalive time; that is, the time interval, in seconds, between LDP keepalive messages. LDP keepalive messages are sent to keep the LDP session from timing out when no other LDP traffic is being sent between the neighbors.

Hold Time

The time interval, in seconds, that LDP waits before declaring a neighbor to be down. Hold time (also known as Hello time) is local to the system and is sent in the hello messages to a neighbor.

Hello Factor

The value by which the hello timeout should be divided to give the hello time; that is, the time interval, in seconds, between LDP Hello messages. LDP uses hello messages to discover neighbors and to detect loss of connectivity with its neighbors.

Propagate Policy

Specifies whether the LSR should generate FECs and which FECs it should generate

system — indicates that the LDP will distribute label bindings only for the router’s system IP address

interface — indicates that the LDP will distribute label bindings for all LDP interfaces

all — indicates that the LDP will distribute label bindings for all prefixes in the routing table

none — indicates that the LDP will not distribute any label bindings

Transport Address

interface — the interface IP address is used to set up the LDP session between neighbors. If multiple interfaces exist between two neighbors, the interface mode cannot be used since only one LDP session is actually set up between the two neighbors.

system — the system IP address is used to set up the LDP session between neighbors

Label-Distribution

The label distribution method

Label-Retention

liberal — all advertised label mappings are retained whether they are from a valid next hop or not. When the label distribution value is downstream unsolicited, a router may receive label bindings for the same destination for all its neighbors. Labels for the non-next-hops for the FECs are retained in the software but not used. When a network topology change occurs where a non-next-hop becomes a true next hop, the label received earlier is then used.

conservative — advertised label mappings are retained only if they will be used to forward packets; for example if the label came from a valid next hop. Label bindings received from non-next-hops for each FEC are discarded.

Control Mode

ordered — label bindings are not distributed in response to a label request until a label binding has been received from the next hop for the destination

independent — label bindings are distributed immediately in response to a label request even if a label binding has not yet been received from the next hop for the destination

Route Preference

The route preference assigned to LDP routes. When multiple routes are available to a destination, the route with the lowest preference will be used. This value is only applicable to LDP interfaces and not for targeted sessions.

Targeted Session Parameters

Keepalive Timeout

The factor used to derive the keepalive interval

Keepalive Factor

The time interval, in seconds, that LDP waits before tearing down the session

Hold Time

The time left before a neighbor is declared to be down

Hello Factor

The value by which the hello timeout should be divided to give the hello time; that is, the time interval, in seconds, between LDP Hello messages. LDP uses hello messages to discover neighbors and to detect loss of connectivity with its neighbors.

Disable — indicates that no authentication is being used

Passive Mode

True — indicates that LDP responds only when it gets a connect request from a peer and will not attempt to actively connect to its neighbors

False — indicates that LDP actively tries to connect to its peers

Targeted Sessions

Enabled — indicates that targeted sessions are enabled

Disabled — indicates that targeted sessions are disabled

peer

Syntax 
peer [ip-address] [detail]
Context 
show>router>ldp
Description 

This command displays configuration information about LDP peers.

Parameters 
ip-address—
specifies the IP address of the LDP peer
detail—
displays detailed information
Output 

The following output is an example of LDP peer information, and Table 33 describes the fields.

Sample Output
A:ALU-12# show router ldp peer
===============================================================================
LDP Peers
===============================================================================
Peer              Adm  Opr  Hello   Hold    KA      KA       Passive   Auto
                            Factor  Time    Factor  Timeout  Mode      Created
-------------------------------------------------------------------------------
10.10.10.93       Up   Up   3       45      4       40       Disabled  Yes
10.10.10.104      Up   Up   3       45      4       40       Disabled  Yes
-------------------------------------------------------------------------------
No. of Peers: 2
===============================================================================
A:ALU-12#
A:ALU-12# show router ldp peer  detail
===============================================================================
LDP Peers (Detail)
===============================================================================
-------------------------------------------------------------------------------
Peer 1.2.3.4
-------------------------------------------------------------------------------
Admin State        : Up              Oper State           : Down
Hold Time          : 45              Hello Factor         : 3
Keepalive Timeout  : 40              Keepalive Factor     : 4
Passive Mode       : Disabled        Last Modified        : 05/01/2008 21:44:17
Active Adjacencies : 0               Auto Created         : No
Tunneling          : None
Lsp Name           : None
===============================================================================
A:ALU-12#
Table 33:  LDP Peer Output Fields   

Label

Description

Peer

The IP address of the peer

Adm

Up — indicates that LDP is administratively enabled

Down — indicates that LDP is administratively disabled

Opr

Up — indicates that LDP is operationally enabled

Down — indicates that LDP is operationally disabled

Hello Factor

The value by which the hello timeout should be divided to give the hello time; that is, the time interval, in seconds, between LDP Hello messages. LDP uses hello messages to discover neighbors and to detect loss of connectivity with its neighbors.

Hold Time

The time interval, in seconds, that LDP waits before declaring a neighbor to be down. Hold time (also known as Hello time) is local to the system and is sent in the hello messages to a neighbor.

KA Factor

The value by which the keepalive timeout should be divided to give the keepalive time; that is, the time interval, in seconds,

between LDP keepalive messages. LDP keepalive messages are sent to keep the LDP session from timing out when no other LDP traffic is being sent between the neighbors.

KA Timeout

The time interval, in seconds, that LDP waits before tearing down a session. If no LDP messages are exchanged during this time interval, the LDP session is torn down. Generally the value is configured to be three times the keepalive time (the time interval between successive LDP keepalive messages).

Passive Mode

The mode used to set up LDP sessions. This value is only applicable to targeted sessions and not to LDP interfaces. This mode is always set to False.

True — indicates that LDP responds only when it gets a connect request from a peer and will not attempt to actively connect to its neighbors

False — indicates that LDP actively tries to connect to its peers

Auto Create

Specifies whether or not a targeted peer was automatically created through a Service Manager. For an LDP interface, this value is always false.

No. of Peers

The total number of LDP peers

LSP

The LSP name

peer-parameters

Syntax 
peer-parameters peer-ip-address
Context 
show>router>ldp
Description 

This command displays LDP peer information.

Parameters 
peer-ip-address—
specifies the peer IP address
Output 

The following output is an example of LDP peer-parameters information, and Table 34 describes the fields.

Sample Output
A:ALU-214># show router ldp peer-parameters
===============================================================================
LDP Peers
===============================================================================
Peer             TTL Security Min-TTL-Value Authentication Auth key chain
-------------------------------------------------------------------------------
10.10.10.104     Disabled     n/a           Enabled        n/a 
-------------------------------------------------------------------------------
No. of Peers: 1
===============================================================================
A:ALU-214>#
Table 34:  LDP Peer-Parameter Output Fields   

Label

Description

Peer

The IP address of the peer

Authentication

Enabled — authentication using MD5 message-based digest protocol is enabled

Disabled — no authentication is used

session

Syntax 
session [ip-addr [:label-space]] [detail | statistics [packet-type]]
Context 
show>router>ldp
Description 

This command displays configuration information about LDP sessions.

Parameters 
ip-addr—
specifies the IP address of the LDP peer
label-space—
specifies the label space identifier that the router is advertising on the interface
Values—
0 to 65535
detail—
displays detailed information
packet-type
specifies the packet type
Values—
hello, keepalive, init, label, notification, address
Output 

The following output is an example of LDP session information, and Table 35 describes the fields.

Sample Output
ALU-12# show router ldp session
===============================================================================
LDP Sessions
===============================================================================
Peer LDP Id           Adj Type State        Msg Sent  Msg Recv  Up Time
-------------------------------------------------------------------------------
10.10.10.104:0        Targeted Established  13943      13947      0d 21:12:41
-------------------------------------------------------------------------------
No. of Sessions: 1
===============================================================================
ALU-12#
A:cpm-a# show router ldp session detail
================================================================
LDP Sessions (Detail)
================================================================
Session with Peer 1.1.1.33:0
------------------------------------------------------------------------------
Adjacency Type    : Link           State                 : Established
Up Time           : 0d 00:03:51
Max PDU Length    : 4096           KA/Hold Time Remaining: 26
Link Adjacencies  : 1              Targeted Adjacencies  : 0
Local Address     : 1.1.1.30       Peer Address          : 1.1.1.33
Local TCP Port    : 646            Peer TCP Port         : 50232
Local KA Timeout  : 30             Peer KA Timeout       : 30
Mesg Sent         : 89             Mesg Recv             : 126
FECs Sent         : 3              FECs Recv             : 3
GR State          : Not Capable
Nbr Liveness Time : 0              Max Recovery Time     : 0
Number of Restart : 0              Last Restart Time     : Never
Advertise         : Address
------------------------------------------------------------------------------
Session with Peer 1.1.1.57:0
------------------------------------------------------------------------------
Adjacency Type    : Targeted       State                 : Established
Up Time           : 0d 00:03:49
Max PDU Length    : 4096           KA/Hold Time Remaining: 36
Link Adjacencies  : 0              Targeted Adjacencies  : 1
Local Address     : 1.1.1.30       Peer Address          : 1.1.1.57
Local TCP Port    : 646            Peer TCP Port         : 49574
Local KA Timeout  : 40             Peer KA Timeout       : 40
Mesg Sent         : 55             Mesg Recv             : 61
FECs Sent         : 11             FECs Recv             : 8
GR State          : Not Capable
Nbr Liveness Time : 0              Max Recovery Time     : 0
Number of Restart : 0              Last Restart Time     : Never
Advertise         : Address/Servi*
================================================================
A:cpm-a#
Table 35:  LDP Session Output Fields   

Label

Description

Peer LDP Id

The IP address of the LDP peer

Adj Type

The adjacency type between the LDP peer and LDP session that is targeted

Link — specifies that this adjacency is a result of a Link Hello

Targeted — specifies that this adjacency is a result of a Targeted Hello

State

Established — the adjacency is established

Trying — the adjacency is not yet established

Msg Sent

The number of messages sent

Msg Rcvd

The number of messages received

Up Time

The amount of time the adjacency has been enabled

status

Syntax 
status
Context 
show>router>ldp
Description 

This command displays LDP status information.

Output 

The following output is an example of LDP status information, and Table 36 describes the fields.

Sample Output
*A:csasim2>show>router>ldp# status
 
===============================================================================
LDP Status for LSR ID 10.10.10.32
===============================================================================
Admin State        : Up                   Oper State           : Up
Created at         : 05/01/2008 16:12:07  Up Time              : 3d 23:31:22
Oper Down Reason   : n/a                  Oper Down Events     : 0
Last Change        : 05/02/2008 16:49:01  Tunn Down Damp Time  : 3 sec
Import Policies    :                      Export Policies      :
    test-policy1                              None
Active Adjacencies : 0                    Active Sessions      : 0
Active Interfaces  : 0                    Inactive Interfaces  : 1
Active Peers       : 0                    Inactive Peers       : 0
Addr FECs Sent     : 0                    Addr FECs Recv       : 0
Serv FECs Sent     : 0                    Serv FECs Recv       : 0
Attempted Sessions : 0
No Hello Err       : 0                    Param Adv Err        : 0
Max PDU Err        : 0                    Label Range Err      : 0
Bad LDP Id Err     : 0                    Bad PDU Len Err      : 0
Bad Mesg Len Err   : 0                    Bad TLV Len Err      : 0
Malformed TLV Err  : 0                    Keepalive Expired Err: 0
Shutdown Notif Sent: 0                    Shutdown Notif Recv  : 0
===============================================================================
*A:csasim2>show>router>ldp#
Table 36:  LDP Status Output Fields   

Label

Description

Admin State

Up — indicates that LDP is administratively enabled

Down — indicates that LDP is administratively disabled

Oper State

Up — indicates that LDP is operationally enabled

Down — indicates that LDP is operationally disabled

Created at

The date and time that the LDP instance was created

Up Time

The time, in hundredths of seconds, that the LDP instance has been operationally up

Oper Down Time

The time, in hundredths of seconds, that the LDP instance has been operationally down

Oper Down Events

The number of times the LDP instance has gone operationally down since the instance was created

Last Change

The date and time that the LDP instance was last modified

Import Policies

The import policy associated with the LDP instance

Active Adjacencies

The number of active adjacencies (established sessions) associated with the LDP instance

Active Sessions

The number of active sessions (session in some form of creation)

associated with the LDP instance

Active Interfaces

The number of active (operationally up) interfaces associated with the LDP instance

Inactive Interfaces

The number of inactive (operationally down) interfaces associated with the LDP instance

Active Peers

The number of active LDP peers

Inactive Peers

The number of inactive LDP peers

Addr FECs Sent

The number of labels that have been sent to the peer associated with this FEC

Addr FECs Recv

The number of labels that have been received from the peer associated with this FEC

Serv FECs Sent

The number of labels that have been sent to the peer associated with this FEC

Serv FECs Recv

The number of labels that have been received from the peer associated with this FEC

Attempted Sessions

The total number of attempted sessions for this LDP instance

No Hello Err

The total number of “Session Rejected” or “No Hello Error” notification messages sent or received by this LDP instance

Param Adv Err

The total number of “Session Rejected” or “Parameters Advertisement Mode Error” notification messages sent or received by this LDP instance

Max PDU Err

The total number of “Session Rejected” or “Parameters Max PDU Length Error” notification messages sent or received by this LDP instance

Label Range Err

The total number of “Session Rejected” or “Parameters Label Range Error” notification messages sent or received by this LDP instance

Bad LDP Id Err

The number of bad LDP identifier fatal errors detected for sessions associated with this LDP instance

Bad PDU Len Err

The number of bad PDU length fatal errors detected for sessions associated with this LDP instance

Bad Mesg Len Err

The number of bad message length fatal errors detected for sessions associated with this LDP instance

Bad TLV Len Err

The number of bad TLV length fatal errors detected for sessions associated with this LDP instance

Malformed TLV Err

The number of malformed TLV value fatal errors detected for sessions associated with this LDP instance

Keepalive Expired Err

The number of session keepalive timer expired errors detected for sessions associated with this LDP instance

Shutdown Notif Sent

The number of shutdown notifications sent related to sessions associated with this LDP instance

Shutdown Notif Recv

The number of shutdown notifications received related to sessions associated with this LDP instance

Clear Commands

instance

Syntax 
instance
Context 
clear>router>ldp
Description 

This command resets the LDP instance.

interface

Syntax 
interface ip-int-name [statistics]
Context 
clear>router>ldp
Description 

This command restarts or clears statistics for LDP interfaces.

Parameters 
ip-int-name—
specifies an existing interface. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
statistics—
clears only the statistics for an interface

peer

Syntax 
peer ip-address [statistics]
Context 
clear>router>ldp
Description 

This command restarts or clears statistics for LDP targeted peers.

Parameters 
ip-address—
specifies a targeted peer
statistics—
clears only the statistics for a targeted peer

session

Syntax 
session ip-addr [:label-space] [statistics]
Context 
clear>router>ldp
Description 

This command restarts or clears statistics for LDP sessions.

Parameters 
ip-addr—
specifies the IP address of the LDP peer
label-space—
specifies the label space identifier that the router is advertising on the interface
Values—
0 to 65535
statistics—
clears only the statistics for a session

statistics

Syntax 
statistics
Context 
clear>router>ldp
Description 

This command clears LDP instance statistics.

Debug Commands

The following output shows debug LDP configurations discussed in this section.

ALU-12# debug router ldp peer 10.10.10.104
ALU-12>debug>router>ldp# show debug ldp
debug
    router "Base"
        ldp peer 10.10.10.104
            event
                bindings
                messages
            exit
            packet
                hello
                init
                keepalive
                label
            exit
        exit
    exit
exit
ALU-12>debug>router>ldp#

ldp

Syntax 
[no] ldp
Context 
debug>router
Description 

This command configures LDP debugging.

interface

Syntax 
[no] interface interface-name
Context 
debug>router>ldp
Description 

This command configures debugging for a specific LDP interface.

Parameters 
interface-name—
specifies an existing interface

peer

Syntax 
[no] peer ip-address
Context 
debug>router>ldp
Description 

This command configures debugging for a specific LDP peer.

Parameters 
ip-address—
specifies the LDP peer to debug

event

Syntax 
[no] event
Context 
debug>router>ldp>interface
debug>router>ldp>peer
Description 

This command configures debugging for specific LDP events.

bindings

Syntax 
[no] bindings
Context 
debug>router>ldp>peer>event
Description 

This command displays debugging information about addresses and label bindings learned from LDP peers for LDP bindings.

The no form of the command disables the debugging output.

messages

Syntax 
[no] messages
Context 
debug>router>ldp>if>event
debug>router>ldp>peer>event
Description 

This command displays specific information (for example, message type, source, and destination) regarding LDP messages sent to and received from LDP peers.

The no form of the command disables debugging output for LDP messages.

packet

Syntax 
[no] packet
Context 
debug>router>ldp>interface
debug>router>ldp>peer
Description 

This command enables debugging for specific LDP packets.

The no form of the command disables the debugging output.

hello

Syntax 
hello [detail]
no hello
Context 
debug>router>ldp>if>packet
debug>router>ldp>peer>packet
Description 

This command enables debugging for sent and received LDP Hello packets.

The no form of the command disables the debugging output.

Parameters 
detail—
displays detailed information

init

Syntax 
init [detail]
no init
Context 
debug>router>ldp>peer>packet
Description 

This command enables debugging for LDP Init packets. The detail option displays detailed information on the type length value (TLV) included in mac-flush packets.

The no form of the command disables the debugging output.

Parameters 
detail—
displays detailed information

keepalive

Syntax 
[no] keepalive
Context 
debug>router>ldp>peer>packet
Description 

This command enables debugging for LDP keepalive packets.

The no form of the command disables the debugging output.

label

Syntax 
label [detail]
no label
Context 
debug>router>ldp neighbor>packet
Description 

This command enables debugging for LDP label packets.

The no form of the command disables the debugging output.

Parameters 
detail—
displays detailed information