< Home

(Optional) Disabling a Device from Distributing Labels to Remote Peers

Context

In MPLS L2VPN scenarios using LDP (including Martini VLL, PWE3, and Martini VPLS), PEs at both ends need to establish a remote LDP session. The remote LDP session is only used to transmit Label Mapping messages, so LDP is not required. By default, LDP allocates common LDP labels to remote peers. Many useless idle labels are generated, wasting LDP labels.

To solve the preceding problem, disable a device from distributing labels to remote peers to save system resources. You can use either of the following modes:

  • In the LDP view, disable the PE from distributing labels to all remote peers.

  • In the view of a specified remote peer, disable the PE from distributing labels to the specified remote peer.

Procedure

  • Disable a device from distributing labels to a specified remote peer.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp remote-peer remote-peer-name

      The remote MPLS LDP peer view is displayed.

    3. Run remote-ip ip-address pwe3

      LDP is prevented from allocating public network labels to a specified remote peer device.

      By default, the IP address of the remote LDP peer is not configured.

  • Disable a device from distributing LDP labels to all remote peers.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp

      The MPLS LDP view is displayed.

    3. Run remote-peer pwe3

      LDP is prevented from allocating public network labels to all remote peer devices.

      By default, an LSR is permitted to distribute public network labels to all remote peers.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >