mpls ldp enable
Use mpls ldp enable to enable IPv4 LDP on an interface.
Use undo mpls ldp enable to disable IPv4 LDP on an interface.
Syntax
mpls ldp enable
undo mpls ldp enable
Default
IPv4 LDP is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
An up interface enabled with IPv4 LDP and MPLS sends IPv4 Link Hellos for neighbor discovery.
On an LDP over MPLS TE network, an up MPLS TE tunnel interface enabled with LDP sends Targeted Hellos to the tunnel destination. The interface establishes a session to the tunnel peer to set up an LDP LSP over the MPLS TE tunnel.
Before you enable IPv4 LDP on an interface, use the mpls ldp command in system view to enable LDP globally. If the interface is bound to a VPN instance, you must also use the vpn-instance command to enable LDP for the VPN instance.
Disabling LDP on an interface terminates all LDP sessions on the interface, and removes all LSPs established through the sessions.
Examples
# Enable IPv4 LDP on VLAN-interface 2.
<Sysname> system-view [Sysname] mpls ldp [Sysname-ldp] quit [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] mpls ldp enable
Related commands
display mpls ldp interface
mpls enable
mpls ldp