Command Manual – QoS
H3C S7500E Series Ethernet Switches
Chapter 2 QoS Policy Configuration Commands
2-5
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match customer-dot1p 2
# Define a rule for class 1 to match the packets with the service provider network
802.1p precedence 5.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match service-dot1p 5
# Define a rule for class1 to match the packets of VLAN 1024 of the user networks.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match customer-vlan-id 1024
# Define a rule for class1 to match the packets of VLAN 1000 of the operator’s network.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match service-vlan-id 1000
2.1.3 traffic classifier
Syntax
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
undo traffic classifier
classifier-name
View
System view
Parameters
and
: Specifies the relationship among the rules in the class as logic AND. That is, a
packet is matched only when it matches all the rules defined for the class.
or
: Specifies the relationship among the rules in the class as logic OR. That is, a packet
is matched if it matches a rule defined for the class.
classifier-name
: Name of the class to be created.
Description
Use the
traffic classifier
command to create a class. This command also leads you to
class view.
Use the
undo traffic classifier
command to remove a class.
By default, a packet is matched only when it matches all the rules configured for the
class.