Applying A Policy - H3C S5120-EI Series Operation Manual

Hide thumbs Also See for S5120-EI Series:
Table of Contents

Advertisement

To do...
Enter system view
Create a policy (This operation
leads you to policy view)
Specify the traffic behavior for a
class

Applying a Policy

You can apply a QoS policy in different views as follows:
In port or port group view, the policy applies to the inbound or outbound direction of an interface or
a group of interfaces;
In user profile view, the policy applies to the traffic sent or received by the online users;
In VLAN view, the policy applies to the inbound or outbound direction of a VLAN;
You cannot modify the classification rules, traffic behaviors, and classifier-behavior associations in
a QoS policy already applied. To check whether a QoS policy has been applied successfully, use
the display qos policy global command and the display qos policy interface command.
The switch may save the applications of some QoS policies that have failed to be applied due to
insufficient hardware resources in the configuration file. After the switch reboots, these policies
may preempt other user configurations for resources, resulting in loss of configurations. Suppose
that the user-bind command is configured on GigabitEthernet 1/0/2, and the application of a QoS
policy to GigabitEthernet 1/0/1 is saved in the configuration file even though the application has
failed due to insufficient resources. After the switch reboots, it may assign resources to have the
QoS policy take effect preferentially, while the user-bind configuration may be lost due to
insufficient resources.
Applying a QoS policy to a port/port group
A policy can be applied to multiple ports. Only one policy can be applied in inbound direction of a
port/port group.
Follow these steps to apply the QoS policy to a port/port group:
To do...
Enter system view
Enter port
view
Enter port
view or
port group
Enter port
view
group
view
Use the command...
system-view
qos policy policy-name
classifier classifier-name behavior
behavior-name
Use the command...
system-view
interface interface-type
interface-number
port-group manual port-group-name
2-6
Remarks
Required
Remarks
Perform either of the two
operations.
The configuration performed in
Ethernet interface view applies
to the current port only. The
configuration performed in port
group view applies to all the
ports in the port group.

Advertisement

Chapters

Table of Contents
loading

Table of Contents