Example
mpls ldp (interface view)
Syntax
View
Parameter
Description
Use the
undo mpls ldp
remove all LDP instances
Use the
mpls ldp vpn-instance
create an LDP instance, and enter MPLS LDP VPN instance view.
Use the
undo mpls ldp vpn-instance
instance.
Configure the mpls ldp command after configuring MPLS LSR ID and enabling
MPLS for the current node.
# 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
undo mpls ldp
Interface view
None
Use the
command to enable LDP on an interface.
mpls ldp
Use the
undo mpls ldp
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
command in system view to enable MPLS LDP.
mpls ldp
■
Use the
command in interface view to enable MPLS.
mpls
■
command to disable LDP for the current node and
command to enable LDP for a VPN instance,
command to disable LDP for a VPN
command to disable LDP on an interface.
1549