191
To do… Use the command… Remarks
8. Create a policy and enter
policy view.
qos policy policy-name
Required.
By default, no policy exists.
9. Associate the class with the
traffic behavior in the QoS
policy.
classifier tcl-name behavior behavior-
name
Required.
By default, no traffic behavior
is associated with a class.
10. Exit policy view.
quit —
11. Apply the QoS policy.
See “Applying a QoS policy” Required.
Applying a QoS policy
For more information about applying a QoS policy, see ACL and QoS Configuration Guide.
Appling a QoS policy to an interface
By applying a QoS policy to an interface, you can regulate the traffic sent or received on the interface. A
policy can be applied to multiple interfaces, but in one direction (inbound or outbound) of an interface,
only one policy can be applied.
To apply a QoS policy to an interface:
To do… Use the command… Remarks
1. Enter system view.
system-view —
Enter interface
view.
interface interface-type interface-
number
2. 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.
3. Apply a policy to the
interface or all ports in the
port group.
qos apply policy policy-name
{ inbound | outbound }
Required.
NOTE:
For more information about the qos apply policy command, see
ACL and
QoS Command Reference
.
Apply a QoS policy to a VLAN
You can apply a QoS policy to a VLAN to regulate the traffic sent or received on all ports in the VLAN.
To do…
Use the command… Remarks
1. Enter system view.
system-view —
2. Apply a QoS policy to a
VLAN.
qos vlan-policy policy-name vlan
vlan-id-list { inbound | outbound }
Required.
NOTE:
For more information about the qos vlan-policy command, see
ACL and
QoS Command Reference
.