Configures the maximum number of MAC addresses used for port MAC security on an interface port.
The default value is 8192 MAC addresses.
Interface configuration mode
The maximum MAC address limit for sticky MAC address and static MAC address depends on the device limit. For dynamically learned MAC addresses, the maximum limit is 8192 per port.
The no switchport port-security max command restores the default value of maximum number of MAC addresses.
The following example configures the maximum number of MAC addresses used for port MAC security on an interface port as 10:
device(config)# interface Ethernet 3/2 device(conf-if-eth-3/2)# switchport device(conf-if-eth-3/2)# switchport port-security max 10