![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/8b/18b1e1e7-4363-4706-bb94-6eba3a993996/18b1e1e7-4363-4706-bb94-6eba3a993996-bg60d.png)
1549
Use the undo mpls ldp command to disable LDP for the current node and
remove all LDP instances
Use the
mpls ldp vpn-instance command to enable LDP for a VPN instance,
create an LDP instance, and enter MPLS LDP VPN instance view.
Use the
undo mpls ldp vpn-instance command to disable LDP for a VPN
instance.
Configure the mpls ldp command after configuring MPLS LSR ID and enabling
MPLS for the current node.
Example # Enable LDP for the current node.
<Sysname> System-view
[Sysname] mpls lsr-id 1.1.1.1
[Sysname] mpls
[Sysname-mpls] quit
[Sysname] mpls ldp
[Sysname-mpls-ldp]
# Enable LDP for VPN instance vpn1.
<Sysname> System-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1]
mpls ldp (interface view)
Syntax mpls ldp
undo mpls ldp
View Interface view
Parameter None
Description Use the
mpls ldp command to enable LDP on an interface.
Use the undo mpls ldp command to disable LDP on an interface.
By default, LDP is disabled on an interface.
After you enable LDP on an interface, the interface will create an entity and
periodically sends Hello messages.
Before enabling LDP in interface view, be sure to complete the following tasks:
■ Use the mpls command in system view to enable MPLS.
■ Use the mpls ldp command in system view to enable MPLS LDP.
■ Use the mpls command in interface view to enable MPLS.