switchport port-security maximum
Switchport Port-Security Maximum
Sets the maximum number of mac addresses before a violation is triggered.
Switch(config-if)#switchport port-security maximum <1-6272>
ExampleIn this example, the maximum mac addresses for int fa0/2 is set to 2 for SW3.
Next, 2 new devices are connected to the port, which causes a violation. Here is the violation information.