The mpls ldp local-lsr-id command configures the primary IP address of a specified interface as a local LSR ID of the existing LDP session.
The undo mpls ldp local-lsr-id command restores the default primary IP address.
By default, the current LDP session uses the LSR ID of an LDP instance as a local LSR ID.
100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, VLANIF interface view, XGE interface view
Usage Scenario
LDP sessions that establish LDP LSPs to transmit VPN services share the LSR ID of an LDP instance. Sharing the LSR ID may cause the LDP LSPs to fail to isolate different VPN services. To address this problem, run the mpls ldp local-lsr-id command to specify an LSR ID for each LDP session.
NOTE:Prerequisites
MPLS LDP has been enabled using the mpls ldp command in the interface view before the mpls ldp local-lsr-id command is run in the same interface view.
Configuration Impact
Running this command in an interface view resets LDP adjacencies of corresponding links.
Precautions
If the mpls ldp local-lsr-id command is run more than once, the last configuration overrides the previous one.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls ldp [*HUAWEI-mpls-ldp] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls [*HUAWEI-GigabitEthernet0/1/0] mpls ldp [*HUAWEI-GigabitEthernet0/1/0] mpls ldp local-lsr-id interface