32
Applying the QoS policy
You can apply a QoS policy to different occasions:
Applied to an interface, the policy takes effect on the traffic sent or received on
the interface.
Applied to a user profile, the policy takes effect on the traffic sent or received by
the online users of the user profile.
Applying the QoS policy to an interface
A policy can be applied to multiple interfaces, but only one policy can be applied in
one direction (inbound or outbound) 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 or
port group
view
Enter
interface
view
interface
interface-type
interface-number
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.
Enter port
group
view
port-group manual
port-group-name
Apply the policy to the
interface/port group
qos apply policy
policy-name
{
inbound
|
outbound
}
Required
Display information
about the QoS policies
applied to an interface
display qos policy interface
[
interface-type
interface-number
] [
inbound
|
outbound
]
Optional
Available in any view
Display information
about a specific class
and its associated
behavior in a specific
policy
display qos policy
user-defined
[
policy-name
[
classifier
tcl-name
]
]
Optional
Available in any view
NOTE:
The QoS policy applied to the outgoing traffic of an interface does not regulate local packets.
Local packets are critical protocol packets sent by the local system for maintaining the operation
of the AC. To avoid drop of these packets, QoS does not process them. Commonly used local
packets include link maintenance packets, IS-IS packets, OSPF packets, RIP packets, BGP
packets, LDP packets, RSVP packets, and SSH packets.