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.
device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# lsr-id 10.22.22.22
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