< Home

if-match mpls-label

Function

The if-match mpls-label command sets a matching rule that is based on MPLS labels. That is, a rule is set to match the routes with MPLS labels.

The undo if-match mpls-label command cancels the configuration.

By default, no matching rule based on MPLS labels is set.

Format

if-match mpls-label

undo if-match 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 CSC is deployed, you can use the if-match mpls-label command to match routes with MPLS labels.

Prerequisites

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

Example

# Define a matching rule to permit the routes with MPLS labels to match the rule.

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