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