< Home

mpls ldp (interface view)

Function

The mpls ldp command enables LDP on an interface.

The undo mpls ldp command disables LDP on an interface.

By default, no interface is enabled with LDP.

Format

mpls ldp

undo mpls ldp

Parameters

None

Views

Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view, Virtual-Template interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network to be enabled with MPLS LDP, globally enable MPLS LDP and configure LDP functions. Before you establish an LDP session between a local interface and another node and configure LDP functions, enable MPLS LDP on the interface using the mpls ldp command.

MPLS LDP applies only to Ethernet interfaces, Ethernet subinterfaces, Eth-Trunk interfaces, Eth-Trunk subinterfaces, and VLANIF interfaces.

Prerequisites

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

MPLS has been enabled on the interface using the mpls command in the interface view.

Precautions

Running the undo mpls ldp command in the interface view deletes all MPLS LDP configurations on the interface.

Example

# Enable LDP on an interface.

<sysname> system-view
[sysname] mpls
[sysname-mpls] quit
[sysname] mpls ldp
[sysname-mpls-ldp] quit
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] mpls
[sysname-GigabitEthernet0/0/0] mpls ldp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >