Configuring Rate Limiting on a Physical Interface
Pre-configuration Tasks
WAN-side physical interfaces support rate limiting. You can limit the rate of outgoing packets on a WAN-side physical interface by setting the percentage of traffic against the interface bandwidth.
Before configuring rate limiting on a physical interface, configure link layer attributes of the interface to ensure that the interface works properly.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Run qos overhead layer { link | physics }
A mode is specified for calculating packet lengths during traffic policing or traffic shaping.
By default, the system counts the physical-layer and link-layer compensation information in packet lengths during traffic policing or traffic shaping.
- Run interface interface-type interface-number
The interface view is displayed.
- Run qos lr pct pct-value [ cbs cbs-value ]
The percentage of the traffic rate against the interface bandwidth is set.
By default, the percentage of traffic rate against the interface bandwidth is 100.
Rate limiting will not take effect until queue scheduling is configured.