Configuring a QoS Policy 871
Configuration procedure
Follow these steps to define a class:
match-criteria: Matching rules to be defined for a class. Table 69 describes the 
available forms of this argument.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Create a class and enter the 
corresponding class view 
traffic classifier 
classifier-name [ operator 
{ and | or }] 
Required
By default, the and keyword 
is specified. That is, the 
relation between the rules in 
the class view is logic AND. 
This operation leads you to 
class view. 
Define a rule used to match 
packets 
if-match match-criteria Required
Table 69   The form of the match-criteria argument
Form Description 
acl 
access-list-number 
Specifies an ACL to match packets. The access-list-number argument is in 
the range 2000 to 4999.
In a class configured with the operator and, the logical relationship 
between rules defined in the referenced IPv4 ACL is or. 
acl ipv6 
access-list-number 
Specifies an IPv6 ACL to match IPv6 packets. The access-list-number 
argument is in the range 2000 to 3999.
In a class configured with the operator and, the logical relationship 
between rules defined in the referenced IPv6 ACL is or. 
any  Specifies to match all packets. 
customer-dot1p 
8021p-list 
Specifies to match packets by 802.1p precedence of the customer 
network. The 8021p-list argument is a list of CoS values. You can provide 
up to eight space-separated CoS values for this argument. CoS is in the 
range 0 to 7. 
customer-vlan-id 
vlan-id-list 
Specifies to match the packets of specified VLANs of user networks. The 
vlan-id-list argument specifies a list of VLAN IDs, in the form of vlan-id to 
vlan-id or multiple discontinuous VLAN IDs (separated by space). You can 
specify up to eight VLAN IDs for this argument at a time. VLAN ID is in the 
range 1 to 4094.
In a class configured with the operator and, the logical relationship 
between the customer VLAN IDs specified for the customer-vlan-id 
keyword is or. 
destination-mac 
mac-address 
Specifies to match the packets with a specified destination MAC address. 
dscp dscp-list  Specifies to match packets by DSCP precedence. The dscp-list argument is 
a list of DSCP values. You can provide up to eight space-separated DSCP 
values for this argument. DSCP is in the range of 0 to 63. 
ip-precedence 
ip-precedence-list 
Specifies to match packets by IP precedence. The ip-precedence-list 
argument is a list of IP precedence values. You can provide up to eight 
space-separated IP precedence values for this argument. IP precedence is 
in the range 0 to 7. 
protocol 
protocol-name 
Specifies to match the packets of a specified protocol. The protocol-name 
argument can be IP or IPv6.