CLI Reference Guide-R03

Table Of Contents
Chapter 14
| Congestion Control Commands
Rate Limit Commands
– 392
rate-limit This command defines the rate limit for a specific interface. Use this command
without specifying a rate to restore the default rate. Use the no form to restore the
default status of disabled.
Syntax
rate-limit {input | output} [rate]
no rate-limit {input | output}
input – Input rate for specified interface
outputOutput rate for specified interface
rate – Maximum value in Kbps. (Range: 64-1000000 Kbps)
Default Setting
Disabled
Command Mode
Interface Configuration (Ethernet)
Command Usage
Using both rate limiting and storm control on the same interface may lead to
unexpected results. For example, suppose broadcast storm control is set to 500
Kbps by the command “switchport broadcast packet-rate 500,” and
the rate
limit is set to 20000 Kbps by the command “rate-limit input 20000"
on a Gigabit
Ethernet port. Since 20000 Kbps is 1/5 of line speed (100 Mbps), the received
rate will actually be 100 Kbps, or 1/5 of the 500 Kbps limit set by the storm
control command. It is therefore not advisable to use both of these commands
on the same interface.
Example
Console(config)#interface ethernet 1/1
Console(config-if)#rate-limit input 64
Console(config-if)#
Related Command
show interfaces switchport (394)