lsr-id

Configures an IP address to be used as the LSR ID for the LDP identifier.

Syntax

lsr-id ip_addr
no lsr-id ip_addr

Command Default

The LSR-ID is the first available loopback interface address.

Parameters

ip_addr
Specifies the IP address to assign to the LSR identifier.

Modes

MPLS LDP configuration mode

Usage Guidelines

You can configure only an IPv4 address.

Use the no form of the command to reset the default behavior. When you enter the no form of the command and LDP protocol is in the enabled state, the device uses the same LSR-ID until the LDP protocol is disabled; the IP address selected as LSR-ID for the LDP protocol is still valid and is the operationally UP IP address on an enabled loopback interface.

When you enter the no form of the command and LDP protocol is in the disabled state (this happens when the loopback interface on which IP address is configured is in the disabled state), the device falls back to default behavior which tries to enable LDP protocol when it finds a valid IP address on any one of the enabled loopback interfaces.

MPLS is supported only on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".

Examples

The following example configures an IP address for the LSR identifier.

device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# lsr-id 10.22.22.22