[Sysname] traffic classifier 1
[Sysname-classifier-1] if-match service-vlan-id 10
[Sysname] traffic behavior 1
[Sysname-behavior-1] car name aggcar-1
# Create class 2 to match traffic of VLAN 100; create behavior 2, and reference the aggregate CAR in
[Sysname] traffic classifier 2
[Sysname-classifier-2] if-match service-vlan-id 100
[Sysname] traffic behavior 2
[Sysname-behavior-2] car name aggcar-1
# 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
# 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