< Home

mpls (system view)

Function

The mpls command enables MPLS on the local node and displays the MPLS view.

The undo mpls command deletes all MPLS configurations.

By default, no node is enabled with MPLS.

Format

mpls

undo mpls

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Run the mpls command on a network where MPLS services are to be deployed.

You can run MPLS-related commands only after running the mpls command.

Prerequisites

The LSR ID has been configured using the mpls lsr-id command.

Precautions

After the undo mpls command is run in the system view, MPLS services may be interrupted and all MPLS configurations in the system and interface views are deleted. To restore the MPLS services, reconfigure these commands.
If the command output displays NO for hardware support for MPLS when you run the display device capability command on the S5720-EI switch, the switch does not support MPLS. In this case, you need to pay attention to the following points:
  • MPLS cannot be enabled on the S5720-EI switch. If the switch has been added to a stack, MPLS cannot be enabled on the stack.
  • The S5720-EI switch cannot be added to a stack running MPLS.

Example

# Enable MPLS.

<HUAWEI> system-view
[HUAWEI] mpls lsr-id 10.1.1.1
[HUAWEI] mpls
Info: Mpls starting, please wait... OK!
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >