79
# Create traffic behavior 2, configure a common CAR action, and use hierarchical CAR action video,
with the collaborating mode being OR.
[Switch] traffic classifier 2
[Switch-classifier-2] if-match acl 2001
[Switch-classifier-2] quit
[Switch] traffic behavior 2
[Switch-behavior-2] car cir 240 hierarchy-car video mode or
[Switch-behavior-2] quit
# Create a QoS policy named video, and associate traffic classes 1 and 2 with traffic behaviors 1 and
2 in the QoS policy, respectively.
[Switch] qos policy video
[Switch-qospolicy-video] classifier 1 behavior 1
[Switch-qospolicy-video] classifier 2 behavior 2
[Switch-qospolicy-video] quit
# Apply QoS policy video to the incoming traffic of GigabitEthernet 1/0/1.
[Switch] interface gigabitethernet 1/0/1
[Switch-GigabitEthernet1/0/1] qos apply policy video inbound