beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 92

background image

12-3

# Create a policy named policy, and associate class classifier_1 with behavior behavior_1 in the

policy.

[DeviceA] qos policy policy

[DeviceA-qospolicy-policy] classifier classifier_1 behavior behavior_1

[DeviceA-qospolicy-policy] quit

# Apply the policy named policy to the incoming traffic of GigabitEthernet 2/0/1.

[DeviceA] interface gigabitethernet 2/0/1

[DeviceA-GigabitEthernet2/0/1] qos apply policy policy inbound

[DeviceA-GigabitEthernet2/0/1] quit

# Display traffic statistics to verify the configuration.

[DeviceA] display qos policy interface gigabitethernet 2/0/1

Interface: GigabitEthernet2/0/1

Direction: Inbound

Policy: policy

Classifier: classifier_1

Operator: AND

Rule(s) : If-match acl 2000

Behavior: behavior_1

Accounting Enable:

16 (Packets)