Configuring Interface-based Rate Limiting in the Inbound Direction
Run the qos lr inbound cir cir-value [ cbs cbs-value ] command in the interface view to limit the rate of traffic passing through the interface.
Configuring Interface-based Rate Limiting in the Outbound Direction
Run the qos lr outbound cir cir-value [ cbs cbs-value ] command in the interface view to limit the rate of traffic passing through the interface.
(Optional) Configuring the Inter-frame Gap and Preamble
In V200R005C00 and later versions, you can configure the switch whether to calculate the inter-frame gap and preamble of packets during rate limit calculation on the interface. By default, the switch calculates the inter-frame gap and preamble of packets when the device calculates the rate limit. You can run either of the following commands in the system view to configure the device to not calculate the inter-frame gap and preamble of packets during rate limit calculation, to improve rate limit accuracy.
- Inbound: qos-car exclude-interframe
- Outbound: qos-shaping exclude-interframe
More Information: S Series Switches Common Operation Guide