By default, the LSR-ID is the first available loopback interface address. However, you can specify an IP address of your choice to use as the LSR-ID for the LDP identifier.
Before you begin
Ensure that you configure the LSR ID IP address is an operationally UP IP address on an enabled loopback interface.
About this task
Perform the following steps to configure an LSR ID.
Procedure
-
In privileged EXEC mode, enter global configuration mode.
device# configure terminal
-
Enable MPLS on the device.
device(config)# router mpls
-
Access LDP configuration mode.
device(config-router-mpls)# ldp
-
Configure an IP address for the LSR ID.
device(config-router-mpls-ldp)# lsr-id 10.22.22.22
The configured IP address selected as the LSR ID for LDP is an operationally UP IP address on an enabled loopback interface. You can configure only an IPv4 address.
Example
The following example is the configuration of the previous steps.
device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# lsr-id 10.22.22.22