97
[Sysname] mpls ldp
[Sysname-mpls-ldp]
mpls ldp (interface view)
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 periodically send hello messages.
Before you enable LDP in interface view, complete the following tasks:
• Use the mpls lsr-id command in system view to set the node LSR-ID.
• Use the mpls command in system view to enable MPLS.
• Use the mpls ldp command in system view to enable MPLS LDP globally.
• Use the mpls command in interface view to enable MPLS for the interface.
If the interface is bound to a VPN instance, you need to use the mpls ldp vpn-instance command to
enable LDP for the VPN instance.
This command supports only VLAN interfaces and Layer 3 Ethernet interfaces.
Syntax
mpls ldp
undo mpls ldp
View
Interface view
Default level
2: System level
Parameters
None
Examples
# Enable LDP for interface VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
mpls ldp remote-peer
Description
Use the mpls ldp remote-peer command to create a remote peer entity and enter MPLS LDP remote peer
view.
Use the undo mpls ldp remote-peer command to remove a remote peer entity.