Configuring Global MPLS LDP Functions

Global LDP must be enabled on each node before LDP services can be configured in an MPLS domain.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run mpls lsr-id lsr-id

    The LSR ID of the local node is configured.

    When configuring an LSR ID, note the following:
    • LSR IDs must be set before you run other MPLS commands.

    • An LSR ID must be manually configured because no default LSR ID is available.

    • Using the IP address of a loopback interface on an LSR as an LSR ID is recommended.

      The undo mpls command deletes all MPLS configurations, including the established LDP sessions and LSPs.

  3. Run mpls

    MPLS is enabled globally, and the MPLS view is displayed.

  4. Run mpls ldp

    MPLS LDP is enabled globally, and the MPLS-LDP view is displayed.

  5. (Optional) Run lsr-id lsr-id

    The LSR ID is set for an LDP instance.

    An MPLS LSR ID is usually used as the LSR ID of an LDP instance. When VPN instances are used, such as a BGP/MPLS VPN, if the VPN address space and public network address space overlap, set LSR IDs for LDP instances so that TCP connections for LDP sessions can be properly established.

  6. Run commit

    The configuration is committed.

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