The mpls command enables MPLS on an interface.
The undo mpls command disables MPLS on an interface.
By default, no interface is enabled with MPLS.
Usage Scenario
On a network where MPLS services are deployed, after enabling MPLS on a node, enable MPLS on the interfaces of the node before performing other MPLS configurations.
Prerequisites
MPLS has been enabled globally using the mpls (system view) command.
Precautions
Running the undo mpls command in the interface view deletes all MPLS configurations on the interface.
<HUAWEI> system-view [HUAWEI] mpls [HUAWEI-mpls] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mpls
<HUAWEI> system-view [HUAWEI] mpls [HUAWEI-mpls] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] mpls