This chapter describes the Cisco NX-OS interface commands that begin with R.
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 ot the default value, use the no form of this command.
rate-limit cpu direction {both | input | output} ppspps_valueactionlog
no rate-limit cpu direction {both | input | output} ppspps_valueactionlog
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.
ppspps_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
6.0(2)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)#
Related Commands
Command
Description
show running-config
Displays the running system configuration information.
Related Commands
Command
Description
remote ip address
Configures the IPv4 address for a remote machine.
remote port
Configures the TCP port for a remote machine.
remote vrf
Configures the virtual routing and forwarding (VRF) instance for a remote machine.