Configuring a QoS policy
Step
1.
Enter system view.
2.
Create a policy and enter
policy view.
3.
Associate a class with a traffic
behavior in the QoS policy.
For more information about the qos policy and classifier behavior commands, see ACL and QoS
Command Reference.
Applying a QoS policy
For more information about applying a QoS policy, see ACL and QoS Configuration Guide.
Apply a QoS policy to a port
By applying a QoS policy to an interface, you can mirror the traffic in a specific direction 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 a port:
Step
1.
Enter system view.
2.
Enter interface view or port
group view.
3.
Apply a policy to the
interface, all ports in the port
group, or the PVC.
Apply a QoS policy to a VLAN
You can apply a QoS policy to a VLAN to mirror the traffic in a specific direction on all ports in the
VLAN.
To apply the QoS policy to a VLAN:
Command
system-view
qos policy policy-name
classifier tcl-name behavior
behavior-name
Command
system-view
•
Enter interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
qos apply policy policy-name
{ inbound | outbound }
107
Remarks
N/A
By default, no policy exists.
By default, no traffic behavior is
associated with a class.
Remarks
N/A
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.
For more information about the qos
apply policy command, see ACL
and QoS Command Reference.