Switchport Port-Security Maximum Command on CISCO Router/Switch


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>


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
Port Security : Enabled
Port Status : Secure-shutdown
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 2
Total MAC Addresses : 0
Configured MAC Addresses : 0
Sticky MAC Addresses : 0
Last Source Address:Vlan : 1234.5678.489d:1
Security Violation Count : 1

Related Articles

Leave a Reply