R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide
54
Examples
# Enable LDP globally and enter MPLS LDP view.
<Sysname> system-view
[Sysname] mpls lsr-id 1.1.1.1
[Sysname] mpls
[Sysname-mpls] quit
[Sysname] mpls ldp
[Sysname-mpls-ldp]
mpls ldp (interface view)
Use mpls ldp to enable LDP on an interface.
Use undo mpls ldp to disable LDP on an interface.
Syntax
mpls ldp
undo mpls ldp
Default
LDP is disabled on an interface.
Views
Interface view
Default command level
2: System level
Usage guidelines
After you enable LDP on an interface, the interface will periodically send Hello messages.
Before enabling LDP in interface view, be sure to 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, use the mpls ldp vpn-instance command to enable LDP for the
VPN instance. For more information about the mpls ldp vpn-instance command, see "MPLS L3VPN
commands."
Examples
# Enable LDP for interface GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] mpls
[Sysname-GigabitEthernet2/1/1] mpls ldp










