Command
Switchport Port-Security Violation
Use
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.
Syntax
Switch(config-if)#switchport port-security violation <Type>
Example
For this example, the port-security violation type is set to restrict on int fa0/2 on SW3.
SW3#conf t |
Next, the port-security settings are displayed for int fa0/2, with the new changes.
SW3(config)#int fa0/2 |