mac

Commands for Network Port Configuration
103
Command: rate-violation [broadcast | multicast | unicast | all] <200-2000000>
no rate-violation
Function: Set the max packet reception rate of a port. Any packet which violate the
packet reception rate to process the control operation (currently shutdown and block
operations are supported) of rate-violation. The no command will disable the
rate-violation function of a port.
The rate-violation means the port received the packet rate (the number of the received
packets per second), it can distinguish the packet type, such as broadcast packet,
multicast packet, unicast packet.
Parameters: broadcast: broadcast packet
multicast: multicast packet
unicast: unicast packet
all: all packets
<200-2000000>: the number of packets allowed to pass per second.
Command Mode: Interface Mode
Default: There is no limit for the packet reception rate.
Usage Guide: This command is mainly used to detect the abnormal port flow. For
example, when there are a large number of broadcast packets caused by a loopback,
which affect the processing of other tasks, the port will be shut down or block to ensure
the normal processing of the switch. This command needs to associate with
rate-violation control command.
Example: Set the rate-violation of port 1/8-10 (GB ports) as 10000pps, it will be
shutdown after rate-violation 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 unicast 10000
Switch(Config-Port-Range)#rate-violation control shutdown recovery 1200
3.1.14 rate-violation control
Command: rate-violation control [shutdown recovery <0-86400> | block]
no rate-violation control
Function: Set the control operation after the rate-violation of a port, shutdown (it needs
to configure the recovery time of a port after shutdown) and block operations are
supported presently. The no operation will disable the rate-violation control operation of a
port.
Parameters: shutdown: A port is shutdown after rate-violation.
block: A port is block after rate-violation, this parameter and MSTP,