# Configure the rate limit on the inbound interface. The rate limit is 10M.
[Quidway] qos car car1 cir 10240 cbs 1024000
[Quidway] interface GigabitEthernet1/0/0
[Quidway-GigabitEthernet1/0/0] qos car inbound car1
# Configure the rate limit on the outbound interface to 10M.
[Quidway] interface gigabitethernet1/0/0
[Quidway-GigabitEthernet1/0/0] qos lr cir 10240 pir 10240
Configure flow rate limiting
# Configure the rate limit on the flow. The rate limit of any flow on the inbound and outbound ports is 10M.
[Quidway] traffic classifier c1 operator and
[Quidway-classifier-c1] if-match any
[Quidway-classifier-c1] quit
[Quidway] traffic behavior b1
[Quidway-behavior-b1] car cir 10240 pir 10240 green pass yellow pass red discard
[Quidway-behavior-b1] quit
[Quidway] traffic policy p1
[Quidway-trafficpolicy-p1] classifier c1 behavior b1
[Quidway-trafficpolicy-p1] quit
[Quidway] interface gigabitethernet1/0/1
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 inbound
[Quidway-GigabitEthernet1/0/1] traffic-policy p1 outbound
Description:
The traffic policy can be applied in the inbound and outbound directions of the global, interface, and VLAN views.