![H3C S9500 Series Command Manual Download Page 67](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036067.webp)
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches
Chapter 1 MPLS Basics Configuration Commands
1-59
Description
Use the
mpls
command in system view to enable MPLS for the current node and enter
MPLS view.
Use the
undo mpls
command in system view to disable MPLS for the current node.
Use the
mpls
command in interface view to enable MPLS for the interface.
Use the
undo mpls
command in interface view to disable MPLS for the interface.
By default, MPLS capability is not enabled.
Note that:
z
You need to configure the LSR ID before enabling MPLS capability.
z
You need to enable MPLS globally before enabling it for an interface.
z
You need to enter MPLS view to configure other MPLS commands.
Related commands:
mpls lsr-id
.
Examples
# 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 VLAN-interface 1.
<Sysname> System-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
1.1.34 mpls ldp (system view)
Syntax
mpls ldp
[
vpn-instance
vpn-instance-name
]
undo mpls ldp
[
vpn-instance
vpn-instance-name
]
View
System view
Default Level
1: Monitor level
Parameters
vpn-instance-name
: Name of the VPN instance.