beautypg.com

Applying the qos policy, Applying the qos policy to an interface, Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual

Page 353: Configuration example

background image

2-4

To do…

Use the command…

Remarks

Specify the traffic behavior for a
class in the policy

classifier tcl-name behavior
behavior-name

Required

If an ACL is referenced by a QoS policy for defining traffic match criteria, , packets matching the ACL

are organized as a class and the behavior defined in the QoS policy applies to the class regardless of

whether the match mode of the ACL clause is deny or permit.

Applying the QoS Policy

You can apply the QoS policy to an interface.

You can modify the classification rules, traffic behaviors, and classifier-behavior associations of a QoS

policy already applied.

Applying the QoS Policy to an Interface

A policy can be applied to multiple interfaces. Only one policy can be applied in inbound direction of an

interface.

Configuration procedure

Follow these steps to apply the QoS policy to an interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter
interface
view

interface interface-type
interface-number

Enter
interface
view or port
group view, 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.

Apply the policy to the
interface/port group

qos apply policy policy-name
inbound

Required

Configuration example

# Apply QoS policy test_policy to the inbound direction of GigabitEthernet 1/0/1.

system-view

[Sysname] interface gigabitethernet 1/0/1