beautypg.com

Applying the qos policy to an interface, Applying the qos policy to a vlan, Applying the qos policy globally – H3C Technologies H3C S6300 Series Switches User Manual

Page 30

background image

20

QoS policies applied to an interface, a VLAN, and globally are in descending order of priority. The

switch first matches the criteria in the QoS policy applied to an interface. If there is a match, the switch
executes the QoS policy applied to the interface and ignores the QoS policies applied to the VLAN and

globally.

Applying the QoS policy to an interface

A QoS policy can be applied to multiple interfaces, but only one QoS policy can be applied in one

direction (inbound or outbound) of an interface.
The QoS policy applied to the outgoing traffic on an interface does not regulate local packets, which are

critical protocol packets sent by the local system for operation maintenance. The most common local
packets include link maintenance, RIP, LDP, RSVP, and SSH packets.
To apply the QoS policy to an interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter Ethernet interface
view.

interface interface-type interface-number

N/A

3.

Apply the QoS policy to
the interface.

qos apply policy policy-name { inbound |
outbound }

By default, no QoS policy
is applied to an interface.

NOTE:

If both packet filtering with the permit statement and QoS policies are configured on an interface, the car
and filter actions in the QoS policies do not take effect. For information about packet filtering, see

"

Configuring ACLs

."

Applying the QoS policy to a VLAN

You can apply a QoS policy to a VLAN to regulate traffic of the VLAN.
QoS policies cannot be applied to dynamic VLANs.
To apply the QoS policy to a VLAN:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Apply the QoS policy to
VLANs.

qos vlan-policy policy-name vlan
vlan-id-list { inbound | outbound }

By default, no QoS policy is applied
to a VLAN.

Applying the QoS policy globally

You can apply a QoS policy globally to the inbound or outbound direction of all ports.
To apply the QoS policy globally: