< Home

lsr-id

Function

The lsr-id command sets the LSR ID of an LDP instance.

The undo lsr-id command restores the default setting.

By default, the LSR ID of an LDP instance is the LSR ID of the LSR where the LDP instance is configured

Format

lsr-id lsr-id

undo lsr-id

Parameters

Parameter Description Value
lsr-id Specifies the LSR ID of an LDP instance. The value is in dotted decimal notation.

Views

MPLS-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the LSR ID of an LDP instance is the same as the MPLS LSR ID configured using the mpls lsr-id command. On some networks such as the BGP/MPLS VPNs to which VPN instances apply, if the VPN address space and the public network address space overlap, configure LSR IDs for LDP instances to ensure the correct establishment of TCP connections.

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.

Precautions

Modifying or deleting the LSR ID of an LDP instance causes the reestablishment of all sessions in the LDP instance.

Example

# Set the LSR ID of an LDP instance to 10.1.1.1.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls ldp
[HUAWEI-mpls-ldp] lsr-id 10.1.1.1
Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >