Option
service-vlan-id vlan-id-list
source-mac mac-address
tunnel-id tunnel-id
vxlan { any | vxlan-id }
Usage guidelines
In a traffic class with the logical OR operator, you can configure multiple
any of the available match criteria.
When you configure a match criterion that can have multiple values in one
follow these restrictions and guidelines:
•
You can specify up to eight values for any of the following match criteria in one
command:
802.1p priority.
DSCP.
IP precedence.
VLAN ID.
•
If a packet matches one of the specified values, it matches the
•
To delete a criterion that has multiple values, the specified values in the
command must be the same as those specified in the
values can be different.
•
The ACL is used for classification only and the permit/deny actions in ACL rules are ignored.
Actions taken on matching packets are defined in traffic behaviors.
Examples
# Define a match criterion for traffic class class1 to match the packets with a destination MAC
address of 0050-ba27-bed3.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3
# Define a match criterion for traffic class class2 to match the packets with a source MAC address of
0050-ba27-bed2.
<Sysname> system-view
[Sysname] traffic classifier class2
[Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2
# Define a match criterion for traffic class class1 to match the double-tagged packets with 802.1p
priority 3 in the inner VLAN tag.
<Sysname> system-view
Description
Matches VLAN IDs in outer VLAN tags.
vlan-id-list
The
space-separated list of up to 10 VLAN items. Each item
specifies a VLAN or a range of VLANs in the form of
vlan-id1 to vlan-id2
must be greater than or equal to the value for
The value range for the
You can use this option to match single-tagged packets.
Matches a source MAC address.
This option takes effect only on Ethernet interfaces.
Matches a VXLAN tunnel ID. For the traffic class to take
effect, the tunnel must be a VXLAN tunnel.
Matches a VXLAN ID.
if-match
4
argument specifies a
vlan-id2
. The value for
vlan-id1
vlan-id
argument is 1 to 4094.
commands for
if-match
if-match
if-match
command.
if-match
undo if-match
command. The order of the
.
command,