CLI Reference Port-based Flow Control Configuration Commands
switchport
port-security binding
Configure the secure address
binding.
switchport
port-security
mac-address interface
Set the static secure address in
the privileged EXEC mode.
switchport
port-security
mac-address
Set the static secure address in
the interface configuration
mode.
switchport
port-security aging
Set the aging time for the
secure address.
switchport port-security maximum
Use this command to set the maximum number of the port secure address.. Use the no form of the
command to restore it to the default setting.
switchport port-security maximum value
[no] switchport port-security maximum
Maximum number of the secure
address, in the range of 1 to
128.
Interface configuration mode.
The number of the secure address contains the sum of static secure address and
dynamically learnt secure address, 128 by default. If the number of the secure
address you set is less than current number, it will prompt this setting failure.
The example below describes how to set the maximum number of the secure
address as 2 for interface g 0/10
Ruijie(config)#inter g0/10
Ruijie(config-if)# switchport port-security maximum 2
Show port security
settings.