mpls (interface view)

Function

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.

Format

mpls

undo mpls

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

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.

Configuration Impact

After the mpls command is run, MPLS is enabled on the interface.

Precautions

NOTICE:
Running the undo mpls command in the interface view deletes all MPLS configurations on the interface.

Example

# Enable MPLS on the interface.

<sysname> system-view
[sysname] interface gigabitethernet 1/0/0
[sysname-GigabitEthernet1/0/0] mpls
Related Topics
mpls (system view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.