The lsr-id command sets the label switching router (LSR) ID of an LDP instance.
The undo lsr-id command restores the default LSR ID.
By default, the LSR ID of an LDP instance is the same as the MPLS LSR ID configured using the mpls lsr-id command.
| Parameter | Description | Value |
|---|---|---|
| lsr-id | Specifies the LSR ID of an LDP instance. | Expressed in dotted decimal notation |
Usage Scenario
An LSR ID identifies an LDP instance. To set an LSR ID for an LDP instance, run the lsr-id command. For example, on a MPLS L3VPN, if private IP addresses of a VPN instance overlap public IP addresses, configure another LSR ID for an LDP instance in the VPN instance so that a TCP connection can be established for an LDP session.
Prerequisites
MPLS has been enabled globally using the mpls (system view) command.
MPLS LDP has been enabled globally using the mpls ldp (system view) command.
Configuration Impact
When the lsr-id command is run, the system displays the following prompt:
Warning: All the related sessions will be deleted if the operation is performed! Continue? (y/n):
To continue the operation, enter y.