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

Page 36

Advertising
background image

27

configuration already applied to the main processing unit or other interface cards. To ensure

consistency, you must manually remove the QoS policy configuration applied to them. Do the same
procedure if a global or VLAN-based QoS policy fails to update on an interface card after being

dynamically modified.

Applying the QoS policy to an interface

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

(inbound or outbound) of an interface.
When you apply a QoS policy to an interface, follow these guidelines:

You can apply QoS policies to all physical interfaces but X.25- or LAPB-enabled interfaces.

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, routing (IS-IS, BGP, and OSPF for example), 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 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 take
effect on the current interface.

Settings in port group view take

effect on all ports in the port group.

3.

Apply the policy to the
interface or port group.

qos apply policy policy-name { inbound
| outbound }

N/A

Applying the QoS policy to a VLAN

You can apply a QoS policy to a VLAN to regulate traffic of the VLAN.
To apply the QoS policy to a VLAN:

Step Command

1.

Enter system view.

system-view

2.

Apply the QoS policy to
VLANs.

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

NOTE:

QoS policies cannot be applied to dynamic VLANs, for example, VLANs created by GVRP.

VLAN QoS policies are applied globally to all interface cards. If the hardware resources of an interface
card are insufficient, applying a QoS policy to VLANs will fail on the interface card. The system does not

automatically roll back the QoS policy configuration already applied to the main processing unit or
other interface cards. To ensure consistency, use the undo qos vlan-policy vlan command to manually

remove the QoS policy configuration applied to them.

Advertising