H3C LS-3100-52P-OVS-H3 Operation Manual - page 1261
2-6
Defining a Policy
A policy associates a class with a traffic behavior. Each traffic behavior is comprised of a group of QoS
actions. A device executes these QoS actions in the order they are defined.
Follow these steps to associate a traffic behavior with a class:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a policy (This operation
leads you to policy view)
qos policy policy-name
—
Specify the traffic behavior for a
class
classifier classifier-name behavior
behavior-name [ mode
do1q-tag-manipulation ]
Required
In a QoS policy with multiple class-to-traffic-behavior associations, if the action of creating an outer
VLAN tag, the action of setting customer network VLAN ID, or the action of setting service provider
network VLAN ID is configured in a traffic behavior, we recommend you not to configure any other
action in this traffic behavior. Otherwise, the QoS policy may not function as expected after it is applied.
Applying a Policy
You can apply a QoS policy in different views as follows:
z
In port or port group view, the policy applies to the inbound or outbound direction of an interface or
a group of interfaces;
z
In user profile view, the policy applies to the traffic sent or received by the online users;
z
In VLAN view, the policy applies to the inbound or outbound direction of a VLAN;
z
In system view, the policy applies to the inbound or outbound direction of all ports globally.