R21xx-HP FlexFabric 11900 MPLS Command Reference

Table Of Contents
68
mpls ldp enable
Use mpls ldp enable to enable LDP for an interface.
Use undo mpls ldp enable to disable LDP for an interface.
Syntax
mpls ldp enable
undo mpls ldp enable
Default
LDP is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
Before you enable LDP for an interface, use the mpls ldp command in system view to enable LDP globally.
Disabling LDP on an interface terminates all LDP sessions on the interface, and removes all LSPs
established through the sessions.
If the interface is bound with a VPN instance, you must also use the vpn-instance command to enable LDP
for the VPN instance.
An up interface enabled with LDP and MPLS sends Link Hellos for neighbor discovery.
An up MPLS TE tunnel interface enabled with LDP sends Targeted Hellos to the tunnel destination and
establishes a session with the tunnel peer.
Examples
# Enable LDP for interface 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
mpls ldp timer
Use mpls ldp timer to configure the Hello hold time, Hello interval, Keepalive hold time, and Keepalive
interval.
Use undo mpls ldp timer to restore the default.