ldp label-retention-mode

Use this command to set the retention mode to be used for all labels exchanged via the given interface.

When an LSR receives a label binding for a particular FEC (Forwarding Equivalence Class) from another LSR that is not its next hop for that FEC, it might keep track of such bindings or discard them. Use the liberal parameter to retain all labels binding to FEC received from label distribution peers, even if the LSR is not the current next-hop. Use the conservative parameter to maintain only the label bindings for valid next-hops in a LSP. Liberal label retention mode allows for quicker adaptation to routing changes, whereas conservative label retention mode requires an LSR to maintain fewer labels.

The retention mode value set on the interface (see label-retention-mode) overrides the value set by this command. This command is an interface-specific command, and overrides the setting for an LSR using the global label-retention-mode command.

Use the no parameter to revert to the retention mode set for the main LDP process.

Command Syntax

Copy
ldp label-retention-mode (conservative|liberal)
no ldp label-retention-mode (conservative|liberal)

Parameters

conservative

Specify to delete all unused labels and FECs.

liberal

Specify to retain all labels, regardless of use.

Default

By default, ldp label retention mode is liberal

Command Mode

Interface mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

This example shows how to set the label retention mode for a specific interface:

Copy
#configure terminal
(config)#interface eth0
(config-if)#ldp label-retention-mode liberal