
20
To do…
Use the command…
Remarks
Associate a class with a behavior
in the policy
classifier
tcl-name
behavior
behavior-name
Required
Repeat this step to create more
class-behavior associations.
NOTE:
If an ACL is referenced by a QoS policy for defining traffic match criteria, packets matching the ACL are
organized as a class and the behavior defined in the QoS policy applies to the class regardless of whether
the match mode of the if-match clause is deny or permit.
Applying the QoS policy
You can apply a QoS policy to the following occasions:
•
An interface: The policy takes effect on the traffic received on the interface.
•
A user profile: The policy takes effect on the traffic sent by the online users of the user profile.
•
A VLAN: The policy takes effect on the traffic received on all ports in the VLAN.
•
Globally: The policy takes effect on the traffic received on all ports.
NOTE:
•
You can modify classes, behaviors, and class-behavior associations in a QoS policy applied to an
interface, VLAN, or inactive user profile, or globally. But if a class references an ACL for traffic
classification, you cannot delete or modify the ACL (such as add rules to, delete rules from, and modify
rules of the ACL).
•
If a QoS policy has been applied to an active user profile, you cannot modify classes, behaviors, and
class-behavior associations of the QoS policy, or delete the QoS policy.
•
The QoS policies applied to ports, to VLANs, and globally are in the descending priority order. If the
system finds a matching QoS policy for the incoming/outgoing traffic, the system stops matching the
traffic against QoS policies.
Applying the QoS policy to an interface
A policy can be applied to multiple interfaces, but only one policy can be applied in inbound direction
of an interface.
Follow these steps to apply the QoS policy to an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter
interface
view
interface
interface-type interface-number
Enter
interface
view or port
group view, Enter port
group view
port-group manual
port-group-name
Use either command
Settings in interface view take
effect on the current interface.
Settings in port group view take
effect on all ports in the port group.
Apply the policy to the
interface or port group
qos apply policy
policy-name
inbound
Required