< Home

apply mpls-label

Function

The apply mpls-label command assigns MPLS labels to routes.

The undo apply mpls-label command cancels the configuration.

By default, no MPLS labels are assigned to routes.

Format

apply mpls-label

undo apply mpls-label

Parameters

None

Views

Route-policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Only the USG6510E/6510E-POE/6530E does not support this command.

In the scenario where inter-AS VPN Option C or carrier's carrier (CSC) is deployed, you can use the apply mpls-label command to allocate labels to public routes.

Prerequisites

The apply mpls-label command can be used only after the route-policy command is used.

Configuration Impact

After a public route matches a route-policy, you can allocate an MPLS label to the public route.

Example

# Assign MPLS labels to the routes that match the route-policy.

<sysname> system-view
[sysname] route-policy policy permit node 10
[sysname-route-policy] apply mpls-label
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >