1548
C
95: MPLS B
HAPTER
View
Parameter
Description
Related command:
Example
mpls ldp (system view)
Syntax
View
Parameter
Description
C
C
ASICS
ONFIGURATION
OMMANDS
System view/interface view
None
Use the
mpls
command in system view to enable MPLS for the current node and
enter MPLS view.
Use the
undo mpls
node.
Use the
mpls
command in interface view to enable MPLS for the interface.
Use the
undo mpls
By default, MPLS capability is not enabled.
Note that:
You need to configure the LSR ID before enabling MPLS capability.
■
You need to enable MPLS globally before enabling it for an interface.
■
You need to enter MPLS view to configure other MPLS commands.
■
mpls lsr-id.
# Enable MPLS for the current node and enter MPLS view.
<Sysname> System-view
[Sysname] mpls lsr-id 1.1.1.1
[Sysname] mpls
[Sysname-mpls] quit
# Enable MPLS for interface Ethernet 1/0.
<Sysname> System-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] mpls
mpls ldp [ vpn-instance vpn-instance-name ]
undo mpls ldp [ vpn-instance vpn-instance-name ]
System view
vpn-instance-name: Name of the VPN instance, a case-sensitive string of 1 to 31
characters.
Use the
mpls ldp
LDP view.
command in system view to disable MPLS for the current
command in interface view to disable MPLS for the interface.
command to enable LDP for the current node and enter MPLS