83
Command: rate-violation <packets> [recovery <time>]
no rate-violation
Function: Enable the limit on packet reception rate function, and set the packet reception
rate in one second, the no command delete the function of limit on packet reception rate.
The rate-violation means the packet reception rate, that is, the number of received
packets per second, regardless of their type.
Parameters: <packets> the max number of packets allowed to pass through the port.
recovery: means after a period of time the port can recover ―Shutdown‖ to ―UP‖ again.
<time> is the timeout of recovery. For example, if the shutdown of a port happens after the
packet reception rate exceeding the limit, the port will be ―up‖ again when the user-defined
timeout period expires. The default timeout is 300s, while 0 means the recovery will never
happen.
Command Mode: Port Mode
Default: There is no limit on packet reception rate by default.
Usage Guide: This command is mainly used to detect the abnormal port flow. For
example, when there are a large number of broadcast messages caused by a loop, which
affect the processing of other tasks of the switch, the port will be shut down to guarantee
the normal operation of the switch.
Example: If users set the rate-violation of port 8-10 (GB ports) of the switch as 10000pps
and the port recovery time as 1200 seconds, when the packet reception rate exceeds
10000, the port will but shut down, and then, after 1200 seconds, the port will be UP
again.
Switch(config)#interface ethernet 1/8-10
Switch(Config-Port-Range)#rate-violation 10000 recovery 1200
3.1.13 show interface
Command: show interface [ethernet <interface-number> | port-channel
<port-channel-number> | vlan <vlan-id> | <interface-name> ] [detail]
show interface ethernet status
show interface ethernet counter {packet | rate}
Function: Show information of layer 3 or layer 2 port on the switch
Parameter: <vlan-id> is the VLAN interface number,the value range from 1 to 4094.
<interface-number> is the port number of the Ethernet, status show important
information of all the layer 2 ports. counter {packet | rate} show package number or rate
statistics of all layer 2 ports. <port-channel-number> is the number of the aggregation
interface, <interface-name> is the name of the interface such as port-channel1. [detail]