< Home

mpls lsr-id

Function

The mpls lsr-id command sets an LSR ID.

The undo mpls lsr-id command deletes an LSR ID.

By default, no LSR ID is set.

Format

mpls lsr-id lsr-id

undo mpls lsr-id

Parameters

Parameter Description Value
lsr-id Specifies the LSR ID of a device, which identifies the LSR. The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An LSR ID identifies an LSR on a network. On a network where MPLS services are deployed, you must configure the LSR IDs for devices.

An LSR does not have the default LSR ID, and you must configure an LSR ID for it. To enhance network reliability, you are advised to use the IP address of a loopback interface on the LSR as the LSR ID.

Follow-up Procedure

You can configure MPLS and associated services.

Precautions

Before changing or deleting a configured LSR ID, you must run the undo mpls command in the system view to delete all MPLS configurations. Exercise caution when you run the undo mpls command.

Running the undo mpls command deletes all MPLS configurations (including established LDP sessions and LSPs).
If the command output displays NO for hardware support for MPLS when you run the display device capability command on the S5720-EI switch, the switch does not support MPLS. In this case, you need to pay attention to the following points:
  • MPLS cannot be enabled on the S5720-EI switch. If the switch has been added to a stack, MPLS cannot be enabled on the stack.
  • The S5720-EI switch cannot be added to a stack running MPLS.

Example

# Set the LSR ID to 1.1.1.1.

<HUAWEI> system-view
[HUAWEI] mpls lsr-id 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >