qos lr
Use qos lr to configure rate limiting on an interface.
Use undo qos lr to delete the rate limiting configuration on an interface.
Syntax
qos lr { inbound | outbound } cir committed-information-rate [ cbs committed-burst-size ]
undo qos lr { inbound | outbound }
Default
Rate limiting is not configured on an interface.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
inbound: Limits the rate of incoming packets on the interface.
outbound: Limits the rate of outgoing packets on the interface.
cir committed-information-rate: Specifies the CIR in kbps. The value range for the committed-information-rate argument is 8 to 1048576 for GE interfaces, 8 to 10485760 for 10-GE interfaces, and 8 to 41943040 for 40-GE interfaces. The values must be integral multiples of 8.
cbs committed-burst-size: Specifies the CBS in bytes. The value range for the committed-burst-size argument is 512 and 134217728 in multiples of 512. The default value for this argument is the product of 62.5 and the CIR and must be an integral multiple of 512. If the product is not an integral multiple of 512, it is rounded up to the nearest integral multiple of 512.
Examples
# Limit the rate of outgoing packets on GigabitEthernet 1/0/1, with CIR 25600 kbps and CBS 512000 bytes.
<Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qos lr outbound cir 25600 cbs 512000