rate-limit cpu direction
To set the packet per second (PPS) rate limit for an interface, use the rate-limit cpu direction command. To revert to the default value, use the no form of this command.
rate-limit cpu direction { both | input | output } pps pps_value action log
no rate-limit cpu direction { both | input | output } pps pps_value action log
Syntax Description
both |
Sets the maximum input and output packet rate. |
input |
Sets the maximum input packet rate. |
output |
Sets the maximum output packet rate. |
pps pps_value |
Specifies the packets per second. The range is from 0 to 100,000. |
action |
Specifies the action is logged. |
log |
Writes a syslog message if the PPS value matches or exceeds the specified rate limit. |
Command Default
None
Command Modes
Interface configuration mode
Command History
Release |
Modification |
---|---|
5.1(3)N1(1) |
This command was introduced. |
Usage Guidelines
This command does not require a license.
Examples
This example shows how to set the maximum input packet rate to 3 for an interface and enable the logging of syslog messages:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# rate-limit cpu direction input pps 3 action log
switch(config-if)#