5.11. LDP Command Reference

5.11.1. Command Hierarchies

5.11.1.1. 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
[no] fast-reroute
fec-originate ip-address/mask [advertised-label in-label] [swap-label out-label] interface interface-name
fec-originate ip-address/mask [advertised-label in-label] next-hop ip-address [swap-label out-label]
fec-originate ip-address/mask [advertised-label in-label] next-hop ip-address [swap-label out-label] interface interface-name
fec-originate ip-address/mask [advertised-label in-label] pop
— no fec-originate ip-address/mask interface interface-name
— no fec-originate ip-address/mask next-hop ip-address
— no fec-originate ip-address/mask next-hop ip-address interface interface-name
— no fec-originate ip-address/mask pop
import policy-name [policy-name...(up to 5 max)]
— no import
hello timeout factor
— no hello
[no] interface ip-int-name
[no] bfd-enable
hello timeout factor
— no hello
keepalive timeout factor
— no keepalive
local-lsr-id {system | interface}
multicast-traffic {enable | disable}
[no] shutdown
transport-address {system | interface}
keepalive timeout factor
— no keepalive
transport-address {system | interface}
mp-mbb-time interval
no mp-mbb-time
[no] peer ip-address
auth-keychain name
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
[no] tunneling
[no] lsp lsp-name

5.11.1.2. 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]
fec-originate [ip-address/mask] [operation-type]
fec-originate [operation-type] [ipv4]
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

5.11.1.3. Clear Commands

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

5.11.1.4. 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

5.11.2. Command Descriptions

5.11.2.1. Configuration Commands

5.11.2.1.1. 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

5.11.2.1.2. LDP Global Commands

ldp

Syntax 
[no] ldp
Context 
config>router
Description 

This command enables 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 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 names 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.

fast-reroute

Syntax 
[no] fast-reroute
Context 
config>router>ldp
Description 

This command enables LDP Fast Reroute (FRR). LDP FRR provides local protection for an LDP FEC by precalculating and downloading a primary and a backup NHLFE for the FEC to the LDP FIB.

When LDP FRR is enabled and an LFA backup next hop exists for the FEC prefix in the RTM, or for the longest prefix the FEC prefix matches to when the aggregate-prefix-match option is enabled, LDP will program the data path with both a primary NHLFE and a backup NHLFE for each next hop of the FEC.

The backup NHLFE is enabled for each affected FEC next hop when any of the following events occurs:

  1. an LDP interface goes operationally down or is administratively shut down
  2. an LDP session to a peer goes down because the Hello timer or keepalive timer has expired over an interface
  3. the TCP connection used by a link LDP session to a peer goes down

The tunnel-down-damp-time command, when enabled, does not cause the corresponding timer to be activated for a FEC as long as a backup NHLFE is still available.

Because LDP can detect the loss of a neighbor/next hop independently, it is possible that it will switch to the LFA next hop while the IGP (OSPF or IS-IS) is still using the primary next hop. As well, when the interface for the previous primary next hop is restored, the IGP may reconverge before LDP completes the FEC exchange with its neighbor over that interface. This may cause LDP to deprogram the LFA next hop from the FEC and blackhole traffic. In order to avoid this situation, IGP-LDP synchronization should be enabled on the LDP interface with the config>router>if>ldp-sync-timer command (refer to the 7705 SAR Router Configuration Guide, “IP Router Command Reference”, for information on configuring the ldp-sync-timer).

Default 

no fast-reroute

fec-originate

Syntax 
fec-originate ip-address/mask [advertised-label in-label] [swap-label out-label] interface interface-name
fec-originate ip-address/mask [advertised-label in-label] next-hop ip-address [swap-label out-label]
fec-originate ip-address/mask [advertised-label in-label] next-hop ip-address [swap-label out-label] interface interface-name
fec-originate ip-address/mask [advertised-label in-label] popno fec-originate ip-address/mask interface interface-name
no fec-originate ip-address/mask next-hop ip-address
no fec-originate ip-address/mask next-hop ip-address interface interface-name
no fec-originate ip-address/mask pop
Context 
config>router>ldp
Description 

This command adds a FEC to the LDP prefix database with a specific label operation on the node.

Permitted operations are swap to originate a FEC for which the LSR is not egress or pop to originate a FEC for which the LSR is egress.

For a swap operation, an incoming label can be swapped with a label in the range of 16 to 1048575. If a swap-label is not configured, the default value is 3.

A route-table entry is required for a FEC with a pop operation to be advertised. For a FEC with a swap operation, a route-table entry must exist and the user-configured next hop for the swap operation must match one of the next hops in the route-table entry.

The next-hop, advertised-label, and swap-label parameters are optional. If a next-hop is configured but no swap-label is specified, the swap occurs with label 3 (implicit null), then the label is popped and the packet is forwarded to the next hop. If the next-hop and swap-label parameters are configured, a regular swap occurs. If no parameters are specified, a pop and forwarding is performed.

Default 

no fec-originate

Parameters 
ip-address/mask—
specifies the IP prefix and prefix length
Values—
ip-address  a.b.c.d (host bits must be 0)
mask           0 to 32

 

advertised label—
specifies the label advertised to the upstream peer. If not configured, the label that is advertised should be from the label pool. If the configured static label is not available, the IP prefix is not advertised.
in-label—
the LSR to swap the label. If configured, the LSR should swap the label with the configured out-label. If not configured, the default action is pop if the next-hop parameter is not defined.
Values—
32 to 2047

 

out-label—
the number of labels to send to the peer associated with this FEC
Values—
16 to 1048575

 

interface-name—
specifies the name of the interface that the label for the originated FEC is swapped to. For an unnumbered interface, this parameter is mandatory because there is no address for the next hop. For a numbered interface, it is optional.
next-hop ip-address
specifies the IP address of the next hop
Values—
a.b.c.d

 

pop—
specifies to pop the label and transmit the packet

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 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 names 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 35 lists the hello timeout factor default values.

Table 35:  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 36 lists the keepalive timeout factor default values.

Table 36:  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

 

legacy-ipv4-lsr-interop

Syntax 
[no] legacy-ipv4-lsr-interop
Context 
config>router>ldp
Description 

This command allows interoperability with third-party legacy IPv4 LSR implementations that do not comply with RFC 5036 with respect to the processing of Hello TLVs with the U-bit set.

The command is a global LDP configuration that disables the Nokia proprietary Interface Info TLV (0x3E05) in the Hello message sent to the peer. Disabling this Hello TLV also results in the non-generation of the Nokia proprietary Hello Adjacency Status TLV (0x3E06) because the Interface Info TLV is not sent.

mcast-upstream-frr

Syntax 
[no] mcast-upstream-frr
Context 
config>router>ldp
Description 

This command enables the mLDP fast upstream switchover feature.

When this command is enabled and LDP is resolving an mLDP FEC received from a downstream LSR, it checks whether an ECMP next hop or an LFA next hop to the root LSR node exists. If LDP finds one, it programs a primary ILM on the interface corresponding to the primary next hop and a backup ILM on the interface corresponding to the ECMP or LFA next hop. Then, LDP sends the corresponding labels to both upstream LSR nodes. Under normal operation, the primary ILM accepts packets while the backup ILM drops them. If the interface or the upstream LSR of the primary ILM goes down, causing the LDP session to go down, the backup ILM starts accepting packets.

In order to make use of the ECMP next hop, the user must configure the ecmp value in the system to at least “2”, using the following command:

config>router>ecmp

In order to make use of the LFA next hop, the user must enable LFA using the following commands (as needed):

config>router>isis>loopfree-alternate

config>router>ospf>loopfree-alternate

Enabling the IP FRR or LDP FRR feature is not strictly required since LDP only needs to know the location of the alternate next hop to the root LSR so it can send the Label Mapping message to program the backup ILM at the initial signaling of the tree. Therefore, enabling the LFA option is sufficient. However, if unicast IP and LDP prefixes need to be protected, then these features and the mLDP fast upstream switchover can be enabled concurrently.

The mLDP FRR fast switchover relies on the fast detection of a loss of an LDP session to the upstream peer to which the primary ILM label had been advertised. It is strongly recommended that the following be performed:

  1. Enable BFD on all LDP interfaces to upstream LSR nodes. When BFD detects the loss of the last adjacency to the upstream LSR, it will immediately bring down the LDP session, which will cause the CSM to activate the backup ILM.
  2. If there is a concurrent T-LDP adjacency to the same upstream LSR node, enable BFD on the T-LDP peer in addition to enabling it on the interface.
  3. Enable the ldp-sync-timer option on all interfaces to the upstream LSR nodes. If an LDP session to the upstream LSR to which the primary ILM is resolved goes down for any reason other than a failure of the interface or of the upstream LSR, routing and LDP will go out of synchronization. This means that the backup ILM will remain activated until the next time SPF is run by IGP. By enabling the IGP-LDP synchronization feature, the advertised link metric will be changed to the maximum value as soon as the LDP session goes down. This, in turn, triggers an SPF, and LDP will download a new set of primary and backup ILMs.

The no form of this command disables fast upstream switchover for mLDP FECs.

Default 

no mcast-upstream-frr

mp-mbb-time

Syntax 
mp-mbb-time interval
no mp-mbb-time
Context 
config>router>ldp
Description 

This command configures the maximum time a point-to-multipoint transit or bud node must wait before switching over to the new path if the new node does not send an MBB TLV to inform the transit or bud node of the availability of the data plane.

The no form of the command sets the wait time to the default.

Default 

3 s

Parameters 
interval—
specifies the MP MBB wait time
Values—
1 to 10 seconds

 

tunneling

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

This command enables LDP over tunnels.

The no form of the command disables tunneling.

Default 

no tunneling

lsp

Syntax 
[no] lsp lsp-name
Context 
config>router>ldp>targeted-session>peer>tunneling
Description 

This command configures an LSP destined for this peer to be used for tunneling an LDP FEC over RSVP-TE. A maximum of four RSVP-TE LSPs can be used for tunneling LDP FECs to the T-LDP peer.

It is not necessary to specify any RSVP-TE LSP in this context unless there is a need to restrict the tunneling to selected LSPs. All RSVP-TE LSPs with a to address matching that of the T-LDP peer are eligible by default. The user can also exclude specific LSP names by using the ldp-over-rsvp exclude command in the config>router>mpls>lsp lsp-name context.

The no form of this command removes the LSP association.

Parameters 
lsp-name—
specifies the name of the LSP

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 resets 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

 

5.11.2.1.3. 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 unless the LSR ID is explicitly configured. 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 always 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, 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 peers
interface—
specifies that the IP interface address is used to set up the LDP session between peers

multicast-traffic

Syntax 
multicast-traffic {enable | disable}
Context 
config>router>ldp>if-params>interface
Description 

This command enables or disables multicast traffic forwarding on the interface. The multicast-traffic command must be configured on a per-LDP interface basis to enable point-to-multipoint LDP setup on the interface. Point-to-multipoint LDP must be configured as an inclusive or selective provider tunnel per MVPN to dynamically initiate a point-to-multipoint LSP to the leaf PE nodes learned via NG-MVPN auto-discovery signaling. S-PMSI is for efficient data distribution and is optional.

Use the mldp command to configure point-to-multipoint LDP for an MVPN. The mldp command is found under the config>service>vprn>mvpn>provider-tunnel>inclusive or selective contexts.

Default 

enabled

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.

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

5.11.2.1.4. 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 
[no] bfd-enable
Context 
config>router>ldp>if-params>interface
config>router>ldp>targeted-session>peer
Description 

This command enables or disables bidirectional forwarding detection (BFD) tracking of the LDP session for the interface or the T-LDP session for the peer.

The no form of this command disables BFD tracking.

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 one or more non-directly connected LDP peers. 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, unless the LSR ID is explicitly configured. 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 always be configured on the router or the LDP protocol will not come up on the node.

At initial configuration, the LDP session to the peers 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, the LDP session to all peers using this LSR ID 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.

5.11.2.1.5. 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

auth-keychain

Syntax 
auth-keychain name
no auth-keychain
Context 
config>router>ldp>peer-parameters>peer
Description 

This command associates an authentication keychain with LDP. The keychain is a collection of keys used to authenticate LDP messages from remote peers. The keychain allows the rollover of authentication keys during the lifetime of a session and also supports stronger authentication algorithms than clear text and MD5.

The keychain must already be defined in the config>system>security>keychain context.

Either the authentication-key command or the auth-keychain command can be used by LDP, but both cannot be supported at the same time. If both commands are configured, the auth-keychain configuration will be applied and the authentication-key command will be ignored.

By default, authentication is not enabled.

Default 

no auth-keychain

Parameters 
name—
the name of an existing keychain, up to 32 characters

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.

Either the authentication-key command or the auth-keychain command can be used by LDP, but both cannot be supported at the same time. If both commands are configured, the auth-keychain configuration will be applied and the authentication-key command will be ignored.

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.

5.11.2.2. Show Commands

Note:

The following command outputs are examples only; actual displays may differ depending on supported functionality and user configuration.

auth-keychain

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

This command displays LDP sessions using a particular authentication keychain.

Parameters 
keychain—
specifies an existing keychain name
Output 

The following output is an example of LDP sessions using an authentication keychain, and Table 37 describes the fields.

Output Example
*A:ALU-48# show router ldp auth-keychain
===============================================================================
LDP Peers
===============================================================================
Peer             TTL Sec   Min-TTL Auth      Auth key chain
-------------------------------------------------------------------------------
10.20.1.3        Disabled   n/a    Enabled   eta_keychain1
-------------------------------------------------------------------------------
No. of Peers: 1
===============================================================================
*A:ALU-48#
Table 37:  LDP Auth-keychain Output Fields  

Label

Description

Peer

The IP address of the peer

TTL Sec

Indicates whether LDP peering session security is enabled or disabled

Min-TTL

The minimum TTL value for an incoming packet

Auth

Indicates whether authentication using MD5 message-based digest protocol is enabled or disabled

Auth key chain

Indicates the authentication keychain associated with the session, if applicable

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 or name to display
Values—
1 to 2147483690 or svc-name

 

Output 

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

  1. LDP bindings detail
  2. LDP bindings session
  3. LDP bindings active
Output Example - 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, WP - Label Withdraw Pending, C - Cpipe Service
        BU - Alternate for Fast Re-Route, TLV - (Type, Length: Value), H - Hpipe
===============================================================================
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:csm-a#
Table 38:  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

V: VPLS Service

M: Mirror Service

A: Apipe Service

F: Fpipe Service

I: IES Service

R: VPRN service

P: Ipipe Service

WP: Label Withdraw Pending

C: Cpipe Service

BU: Alternate for Fast Re-Route

TLV: (Type, Length: Value)

H: Hpipe

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, or Unnumbered for unnumbered interfaces

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 the egress flags, if any

Egr. Ctl Word

Indicates whether egress control words are used

Egr. Status Bits

Indicates whether egress status bits are supported

Egr If Name

The egress interface name

Ing. Flags

Specifies the ingress flags, if any

Ing. Ctl Word

Indicates whether ingress control words are used

Ing. Status Bits

Indicates whether ingress status bits are supported

Metric

The metric of the LSP

Mtu

The size of the MTU for the global FEC or tunnel to which the LDP binding is applied

Op

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

Output Example - show router ldp bindings detail
A:cpm-a# show router ldp bindings detail
===============================================================================
LDP LSR ID: 10.20.1.3
===============================================================================
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, WP - Label Withdraw Pending, C - Cpipe Service
        BU - Alternate For Fast Re-Route, TLV - (Type, Length: Value), H - Hpipe
===============================================================================
LDP Prefix Bindings
===============================================================================
-------------------------------------------------------------------------------
Prefix             : 10.20.1.3/32 
-------------------------------------------------------------------------------
Ing Lbl            : 131070U             Peer                : 10.20.1.5
Egr Lbl            :   -- 
Egr Int/LspId      :   --
EgrNextHop         :   -- 
Egr. Flags         : None                Ing. Flags          : None
-------------------------------------------------------------------------------
Prefix             : 10.20.1.5/32 
-------------------------------------------------------------------------------
Ing Lbl            :   --                Peer                : 10.20.1.5
Egr Lbl            : 131070 
Egr Int/LspId      : aps-1
EgrNextHop         : 3.5.1.2 
Egr. Flags         : None                Ing. Flags          : None
Egr If Name        : ip-3.5.1.1
Metric             : 10                  Mtu                 : 1570
-------------------------------------------------------------------------------
Prefix             : 10.20.1.5/32 
-------------------------------------------------------------------------------
Ing Lbl            :   --                Peer                : 10.20.1.5
Egr Lbl            : 131070 
Egr Int/LspId      : aps-2
EgrNextHop         : 3.5.2.2 
Egr. Flags         : None                Ing. Flags          : None
Egr If Name        : ip-3.5.2.1
Metric             : 10                  Mtu                 : 1570
-------------------------------------------------------------------------------
Prefix             : 10.20.1.5/32 
-------------------------------------------------------------------------------
Ing Lbl            :   --                Peer                : 10.20.1.5
Egr Lbl            : 131070 
Egr Int/LspId      : aps-3
EgrNextHop         : 3.5.3.2 
Egr. Flags         : None                Ing. Flags          : None
Egr If Name        : ip-3.5.3.1
Metric             : 10                  Mtu                 : 1570
===============================================================================
No. of Prefix Bindings: 4
===============================================================================
 
================================================================
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#
Output Example - 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#
Output Example - show router ldp bindings active
ALU-12# show router ldp bindings active
===============================================================================
Legend:  (S) - Static       (M) - Multi-homed Secondary Support
         (B) - BGP Next Hop (BU) - Alternate Next-hop for Fast Re-Route
===============================================================================
LDP Prefix Bindings (Active)
===============================================================================
Prefix                  Op   IngLbl    EgrLbl    EgrIntf/LspId  EgrNextHop
-------------------------------------------------------------------------------
10.20.1.1/32            Pop  131071      --        --             --
10.20.1.2/32            Push   --      131071    1/1/1          10.10.1.2
10.20.1.2/32            Swap 131070    131071    1/1/1          10.10.1.2
10.20.1.2/32            Push   --      262141BU  1/1/2          10.10.2.3
10.20.1.2/32            Swap 131070    262141BU  1/1/2          10.10.2.3
10.20.1.3/32            Push   --      131069BU  1/1/1          10.10.1.2
10.20.1.3/32            Swap 131069    131069BU  1/1/1          10.10.1.2
10.20.1.3/32            Push   --      262143    1/1/2          10.10.2.3
10.20.1.3/32            Swap 131069    262143    1/1/2          10.10.2.3
10.20.1.4/32            Push   --      131068    1/1/1          10.10.1.2
10.20.1.4/32            Swap 131068    131068    1/1/1          10.10.1.2
10.20.1.4/32            Push   --      262140BU  1/1/2          10.10.2.3
10.20.1.4/32            Swap 131068    262140BU  1/1/2          10.10.2.3
10.20.1.5/32            Push   --      131067BU  1/1/1          10.10.1.2
10.20.1.5/32            Swap 131067    131067BU  1/1/1          10.10.1.2
10.20.1.5/32            Push   --      262139    1/1/2          10.10.2.3
10.20.1.5/32            Swap 131067    262139    1/1/2          10.10.2.3
10.20.1.6/32            Push   --      131066    1/1/1          10.10.1.2
10.20.1.6/32            Swap 131066    131066    1/1/1          10.10.1.2
10.20.1.6/32            Push   --      262138BU  1/1/2          10.10.2.3
10.20.1.6/32            Swap 131066    262138BU  1/1/2          10.10.2.3
-------------------------------------------------------------------------------
No. of Prefix Bindings: 21
===============================================================================
ALU-12#
Output Example - show router ldp bindings active (on unnumbered interfaces)
ALU-12# show router ldp bindings active
===============================================================================
Legend:  (S) - Static       (M) - Multi-homed Secondary Support
         (B) - BGP Next Hop (BU) - Alternate Next-hop for Fast Re-Route
===============================================================================
LDP Prefix Bindings (Active)
===============================================================================
Prefix                  Op   IngLbl    EgrLbl    EgrIntf/LspId  EgrNextHop
-------------------------------------------------------------------------------
10.20.1.1/32            Push   --      262143    1/1/1          Unnumbered
10.20.1.1/32            Swap 262138    262143    1/1/1          Unnumbered
10.20.1.2/32            Push   --      262143    lag-1          Unnumbered
10.20.1.2/32            Swap 262139    262143    lag-1          Unnumbered
10.20.1.3/32            Pop  262143      --        --             --
10.20.1.4/32            Push   --      262143    2/1/2          Unnumbered
10.20.1.4/32            Swap 262142    262143    2/1/2          Unnumbered
10.20.1.5/32            Push   --      262143    2/1/1          Unnumbered
10.20.1.5/32            Swap 262141    262143    2/1/1          Unnumbered
10.20.1.6/32            Push   --      262140    2/1/2          Unnumbered
10.20.1.6/32            Swap 262140    262140    2/1/2          Unnumbered
-------------------------------------------------------------------------------
No. of Prefix Bindings: 11
===============================================================================
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 39 describes the fields.

Output Example - 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#
Output Example - 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 39:  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

fec-originate

Syntax 
fec-originate [ip-address/mask] [operation-type]
fec-originate [operation-type] [ipv4]
Context 
show>router>ldp
Description 

This command displays LDP static prefix FECs.

Parameters 
ip-address/mask—
specifies the IP prefix and prefix length
Values—
ipv4-address    a.b.c.d (host bits must be 0)
mask               0 to 32

 

operation-type—
specifies the operation type to display
Values—
pop | swap

 

Output 

The following output is an example of FEC originate information, and Table 40 describes the fields.

Output Example
*A:ALU-12# show router ldp fec-originate
===============================================================================
LDP Static Prefix FECs
===============================================================================
Prefix              NHType  NextHop     IngLabel     EgrLabel    OperIngLabel
-------------------------------------------------------------------------------
24.1.0.0/16         Pop     n/a           --           --        0
24.1.0.1/32         Pop     n/a           --           --        0
24.1.0.2/32         Pop     n/a           --           --        0
24.1.0.3/32         Pop     n/a           --           --        0
24.1.0.4/32         Pop     n/a           --           --        0
24.1.0.5/32         Pop     n/a           --           --        0
24.1.0.6/32         Pop     n/a           --           --        0
24.1.0.7/32         Pop     n/a           --           --        0
24.1.0.8/32         Pop     n/a           --           --        0
24.1.0.9/32         Pop     n/a           --           --        0
...
24.251.0.0/16       Pop     n/a           --           --        0
24.252.0.0/16       Pop     n/a           --           --        0
24.253.0.0/16       Pop     n/a           --           --        0
24.254.0.0/16       Pop     n/a           --           --        0
-------------------------------------------------------------------------------
No. of FECs: 508
===============================================================================
*A:ALU-12#
Table 40:  FEC-Originate Output Fields  

Label

Description

Prefix

The static prefix FEC

NHType

The type of next hop for this entry:

Unknown: the next-hop type has not been set

IP Addr: the next hop is an IP address

Pop: there is no next hop; label is popped and packet routed

Unnumbered: the next hop is an unnumbered interface

Next Hop

The IP address of the next hop, or Unnumbered for unnumbered interfaces

IngLabel

The label that is advertised to the upstream peer. If this variable is set to the default value of 4294967295, the ingress label will be dynamically assigned by the label manager.

EgrLabel

The egress label associated with this next-hop entry. The LSR will swap the incoming label with the configured egress label. If this egress label has a value of 4294967295, the LSR will pop the incoming label.

OperIngLabel

The actual or operational value of the label that was advertised to the upstream peer

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 41 describes the fields.

Output Example
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                           Up   Up   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 41:  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 42 describes the fields.

Output Example
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 42:  LDP Parameters Output Fields 

Label

Description

Graceful Restart Parameters

Nbor Liveliness Time

The neighbor liveness 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 43 describes the fields.

Output Example
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 43:  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 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 44 describes the fields.

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

Label

Description

Peer

The IP address of the peer

TTL Sec

Indicates whether LDP peering session security is enabled or disabled

Min-TTL

The minimum TTL value for an incoming packet

Authentication

Indicates whether authentication using MD5 message-based digest protocol is enabled or disabled

Auth key chain

Indicates the authentication keychain associated with the session, if applicable

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 45 describes the fields.

Output Example
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 45:  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 46 describes the fields.

Output Example
*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 46:  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

5.11.2.3. 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.

5.11.2.4. 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