mpls ldp

Function

The mpls ldp command enables LDP on the local node and displays the LDP view.

The undo mpls ldp command deletes all LDP configurations.

By default, LDP is not enabled on a node.

Format

mpls ldp

undo mpls ldp

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

On a network where MPLS LDP needs to be deployed, run the mpls ldp command to enable MPLS LDP globally and create a public network instance running LDP.

You can perform other LDP configurations only after running the mpls ldp command.

Prerequisites

MPLS has been enabled globally using the mpls command in the system view.

Follow-up Procedure

You can perform other LDP configurations.

Precautions

Running the undo mpls ldp command in the system view causes the deletion of all MPLS LDP configurations in the system view and the interface view.

Example

# Enable LDP globally.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] commit
[~HUAWEI-mpls] quit
[~HUAWEI] mpls ldp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >