Switchport Port-Security Violation
Sets the action that occurs to the switch port when a violation is triggered.
The violation types are:
Protect: Ignores all traffic on the interface
Restrict: Ignores all traffic on the interface, but sends SNMP trap.
Shutdown (default): Shuts the port down and does not allow device to connect.
Switch(config-if)#switchport port-security violation <Type>
For this example, the port-security violation type is set to restrict on int fa0/2 on SW3.
Next, the port-security settings are displayed for int fa0/2, with the new changes.