77
Figure 23 Network diagram
Configuration procedure
# Configure a hierarchical CAR action named http according to the rate limit requirements.
<Switch> system-view
[Switch] qos car http hierarchy cir 320
# Configure ACL 3000 to match HTTP packets.
[Switch] acl number 3000
[Switch-acl-adv-3000] rule permit tcp destination-port eq 80
[Switch-acl-adv-3000] quit
# Create traffic class 1, and use ACL 3000 as the match criterion in the traffic class.
[Switch] traffic classifier 1
[Switch-classifier-1] if-match acl 3000
[Switch-classifier-1] quit
# Configure a common CAR action in traffic behavior 1, and use hierarchical CAR action http, with
the collaborating mode being AND.
[Switch] traffic behavior 1
[Switch-behavior-1] car cir 240 hierarchy-car http mode and
[Switch-behavior-1] quit
# Create a QoS policy named http, and associate traffic class 1 with traffic behavior 1 in the QoS
policy.
[Switch] qos policy http
[Switch-qospolicy-http] classifier 1 behavior 1
[Switch-qospolicy-http] quit
# Apply QoS policy http to the incoming traffic of GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
[Switch] interface gigabitethernet 1/0/1
[Switch-GigabitEthernet1/0/1] qos apply policy http inbound
[Switch-GigabitEthernet1/0/1] quit
[Switch] interface gigabitethernet 1/0/2
[Switch-GigabitEthernet1/0/2] qos apply policy http inbound