H3C Technologies H3C S10500 Series Switches User Manual
Page 78
70
[Sysname] traffic classifier 1
[Sysname-classifier-1] if-match customer-vlan-id 10
[Sysname-classifier-1] quit
[Sysname] traffic behavior 1
[Sysname-behavior-1] car name aggcar-1
[Sysname-behavior-1] quit
# Create class 2 to match traffic of VLAN 100; create behavior 2, and reference the aggregation CAR
in the behavior.
[Sysname] traffic classifier 2
[Sysname-classifier-2] if-match customer-vlan-id 100
[Sysname-classifier-2] quit
[Sysname] traffic behavior 2
[Sysname-behavior-2] car name aggcar-1
[Sysname-behavior-2] quit
# Create QoS policy car, associate class 1 with behavior 1, and associate class 2 with behavior 2.
[Sysname] qos policy car
[Sysname-qospolicy-car] classifier 1 behavior 1
[Sysname-qospolicy-car] classifier 2 behavior 2
[Sysname-qospolicy-car] quit
# Apply the QoS policy to the incoming traffic of GigabitEthernet 1/0/1.
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1]qos apply policy car inbound