mpls (Interface view)

Function

The mpls command enables MPLS on an interface.

The undo mpls command disables MPLS on an interface.

By default, MPLS is not enabled on an interface.

Format

mpls

undo mpls

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE electrical interface view, GMPLS-UNI interface view, Tunnel interface view, VLANIF interface view, XGE sub-interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-base write

Usage Guidelines

Usage Scenario

On a network where MPLS services are deployed, after you enable MPLS on a node, enable MPLS on the interfaces of the node to perform other MPLS configurations.

Prerequisites

MPLS has been enabled globally using the mpls command in the system view.

Follow-up Procedure

You can perform other MPLS configurations.

Precautions

Running the undo mpls command in the interface view causes the deletion of all MPLS configurations on the interface.

Example

# Enable MPLS on an interface.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] commit
[~HUAWEI-mpls] quit
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] undo portswitch
[*HUAWEI-GigabitEthernet0/1/0] mpls
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >