890 CHAPTER 70: APPLYING A QOS POLICY TO VLANS
Displaying and 
Maintaining QoS 
Policies Applied to 
VLANs
Configuration 
Examples
Network Requirements ■ The QoS policy test is defined to perform traffic policing for the packets 
matching basic IPv4 ACL 2000, with CIR as 64 kbps. The exceeding packets are 
dropped.
■ Apply the VLAN policy test to the inbound direction of VLAN 200, VLAN 300, 
VLAN 400, VLAN 500, VLAN 600, VLAN 700, VLAN 800, and VLAN 900.
Configuration Procedure # Enter system view.
<Sysname> system-view 
# Create a class and enter class view.
[Sysname] traffic classifier cl1 
# Define a classification rule.
[Sysname-classifier-cl1] if-match acl 2000
[Sysname-classifier-cl1] quit 
# Create a traffic behavior and enter traffic behavior view.
[Sysname] traffic behavior be1 
# Configure the traffic behavior.
[Sysname-behavior-be1] car cir 64
[Sysname-behavior-be1] quit 
# Create a QoS policy and enter QoS policy view.
[Sysname] qos policy test 
# Associate a class with a traffic behavior.
[Sysname-qospolicy-test] classifier cl1 behavior be1
[Sysname-qospolicy-test] quit 
# Apply the policy to specific VLANs.
[Sysname] qos vlan-policy test vlan 200 300 400 500 600 700 800 900 inbound 
To do…  Use the command…  Remarks 
Display the QoS policies 
applied to VLANs 
display qos vlan-policy 
{ name policy-name | vlan 
[ vlan-id ]} 
Available in any view 
Clear the statistics 
information about the QoS 
policies applied to VLANs 
reset qos vlan-policy [ vlan 
vlan-id ] 
Available in user view