To limit received unicast/broadcast/multicast traffic on Layer 2 port to we can use storm-control
command.
Most common use for this command is to prevent Broadcast storms, but it can also be use to limit all received traffic on layer 2 port.
Syntax:
interface faX/X
storm-control unicast/broadcast/multicast xxxxx
When threshold is reached there can be one of the 3 action;
Syslog - default, switch will trigger syslog message.
Trap - Switch will trigger syslog and also will send SNMP trap ( SNMP trap needs additional configuration)
Shutdown - switch will trigger syslog message and will shut down switch port (err-disable)
Syntax:
storm-control action trap/shutdown