if-match mpls-label
Use if-match mpls-label to define a criterion to match the topmost MPLS label.
Use undo if-match mpls-label to remove the match criterion.
Syntax
if-match mpls-label { label-value&<1-8> | label-value1 to label-value2 }
undo if-match mpls-label { label-value&<1-8> | label-value1 to label-value2 }
Default
No criterion is defined to match the topmost MPLS label.
Views
Traffic class view
Predefined user roles
network-admin
mdc-admin
Parameters
label-value&<1-8>: Specifies a space-separated list of up to eight MPLS label values. An MPLS label value is in the range of 0 to 1048575.
label-value1 to label-value2: Specifies an MPLS label value range, where label-value1 must be smaller than label-value2. An MPLS label value is in the range of 0 to 1048575.
Usage guidelines
You can configure multiple MPLS label values in one command.
If the same MPLS label value is specified multiple times, the system considers them as one.
If a packet matches one of the defined MPLS label values, it matches the if-match clause.
Examples
# Define a criterion to match packets with topmost MPLS label values in the range of 1 to 1000.
<Sysname> system-view [Sysname] traffic classifier database [Sysname-classifier-database] if-match mpls-label 1 to 1000