The mpls lsr-id command sets a label switching router (LSR) ID.
The undo mpls lsr-id command deletes an LSR ID.
By default, no LSR ID is set.
| Parameter | Description | Value |
|---|---|---|
| lsr-id | Specifies the LSR ID of a device, which identifies a peer LSR. | Expressed in dotted decimal notation |
Usage Scenario
An LSR ID uniquely identifies an LSR on an MPLS network. MPLS can be globally enabled only after an LSR ID is set for a device.
No default LSR ID is provided, and the LSR ID needs to be configured. As a network-wide unique 32-bit host address is assigned to a loopback interface, using this interface as an LSR ID is recommended.
Follow-up Procedure
Run the mpls command to globally enable MPLS.
Precautions