port-access port-security client-limit


port-access port-security client-limit <CLIENTS>

no port-access port-security client-limit


Configures the maximum number of clients that are allowed on a port. After configuring the maximum clients limit, the MAC addresses of the clients can be learned by one of the following methods:

  • User can manually configure all MAC addresses by using the mac-address command.
  • User can allow the port to dynamically learn all MAC addresses.
  • User can configure a fixed number of MAC addresses and allow the switch to learn the remaining addresses dynamically.

The no form of the command resets the number of clients to the default, 1.

Command context




Specifies the maximum number of clients. Default: 1. Range: 1 to 32 (6200).


Administrators or local user group members with execution rights for this command.


Configuring client limit on a port:

switch(config-if)# port-access port-security enable
switch(config-if-port-security)# client-limit 64