Configuring the LDP router ID

Ensure that you configure the LSR ID IP address is an operationally UP IP address on an enabled loopback interface.
Perform the following steps to configure an LSR ID.
  1. In privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable MPLS on the device.
    device(config)# router mpls
  3. Access LDP configuration mode.
    device(config-router-mpls)# ldp
  4. 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