1548 CHAPTER 95: MPLS BASICS CONFIGURATION COMMANDS
View System view/interface view
Parameter None
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:
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.
Related command: mpls lsr-id.
Example # 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 (system view)
Syntax mpls ldp [ vpn-instance vpn-instance-name ]
undo mpls ldp [ vpn-instance vpn-instance-name ]
View System view
Parameter vpn-instance-name: Name of the VPN instance, a case-sensitive string of 1 to 31
characters.
Description Use the mpls ldp command to enable LDP for the current node and enter MPLS
LDP view.