![H3C S5120-SI Series Operation Manual Download Page 336](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174336.webp)
2-5
Applying the QoS Policy
You can apply the QoS policy to an interface.
You can modify the classification rules, traffic behaviors, and classifier-behavior associations of a QoS
policy already applied.
Applying the QoS Policy to an Interface
A policy can be applied to multiple interfaces. Only one policy can be applied in inbound direction of an
interface.
Configuration procedure
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/port group
qos apply policy policy-name
inbound
Required
Configuration example
# Apply QoS policy
test_policy
to the inbound direction of GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos apply policy test_policy inbound
Displaying and Maintaining QoS Policies
To do…
Use the command…
Remarks
Display traffic class information
display traffic classifier
user-defined
[
tcl-name
]
Available in any view