R3303-HP HSR6800 Routers MPLS Command Reference

53
mpls
Use mpls in system view to enable MPLS globally and enter MPLS view.
Use undo mpls in system view to disable MPLS globally.
Use mpls in interface view to enable MPLS for the interface.
Use undo mpls in interface view to disable MPLS for the interface.
Syntax
mpls
undo mpls
Default
MPLS capability is disabled globally and on all interfaces.
Views
System view, interface view
Default command level
2: System level
Usage guidelines
Configure the MPLS LSR ID before enabling MPLS capability.
Enable MPLS globally before enabling it for an interface.
Examples
# Enable MPLS globally.
<Sysname> system-view
[Sysname] mpls lsr-id 1.1.1.1
[Sysname] mpls
[Sysname-mpls] quit
# Enable MPLS for interface GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] mpls
Related commands
mpls lsr-id
mpls ldp (system view)
Use mpls ldp to enable LDP globally and enter MPLS LDP view.
Use undo mpls ldp to disable LDP globally and remove all LDP instances.
Syntax
mpls ldp
undo mpls ldp