Applying the qos policy, Applying the qos policy to an interface – H3C Technologies H3C SR8800 User Manual
Page 44

35
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a policy and enter policy view.
qos policy policy-name N/A
3.
Associate a class with a behavior in the
policy.
classifier tcl-name behavior
behavior-name
N/A
4.
Display the information about a QoS
policy information or a traffic behavior
associated with a QoS policy.
display qos policy user-defined
[ policy-name [ classifier tcl-name ] ] [ |
{ begin | exclude | include }
regular-expression ]
Optional.
Available in any
view
Applying the QoS policy
You can apply the QoS policy in different views.
You can apply a QoS policy to the following destinations:
•
An interface—The policy takes effect on the traffic sent or received on the interface.
•
A VLAN—The policy takes effect on the traffic sent or received on all ports in the VLAN.
•
Globally—The policy takes effect on the traffic sent or received on all ports.
You can modify the match criteria, traffic behaviors, and classifier-behavior associations of a QoS policy
already applied. If a class in the QoS policy uses an ACL as a match criterion, you can modify or delete
the ACL, for example, add, delete, and modify the ACL rules.
NOTE:
VLANs do not support user-defined flow templates. In case an interface referencing a user-defined flow
template and a VLAN on the interface have been each associated with a module QoS command (MQC)
policy in the same direction, the one on the interface takes effect and the one on the VLAN do not take
effect.
Applying the QoS policy to an interface
A policy can be applied to multiple interfaces. Only one policy can be applied in one direction (inbound
or outbound) of an interface.
To apply a policy to an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view or
port group view.
•
Enter interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual port-group-name
Use either command.
Settings in interface view are
effective on the current interface.
Settings in port group view are
effective on all ports in the port
group.
3.
Apply a policy to the
interface or port group.
qos apply policy policy-name { inbound
| outbound }
N/A