134
Parameter: < value> is the up limit for static secure MAC address, the valid range is 1 to
128.
Default: The default maximum port secure MAC address number is 1.
Usage Guide: The MAC address binding function must be enabled before maximum
secure MAC address number can be set. If secure static MAC address number of the port
is larger than the maximum secure MAC address number set, the setting fails; extra
secure static MAC addresses must be deleted, so that the secure static MAC address
number is no larger than the maximum secure MAC address number for the setting to be
successful.
Example: Set the maximum secure MAC address number for port 1 to 4.
Switch(Config)#interface Ethernet 1/1
Switch(Config-Ethernet1/1)#switchport port-security maximum 4
4.5.1.2.2.7 port security action shutdown
Command: port security actionshutdown
no port security action
Function: Set the violation mode for the port; the “no” command restores the violation
mode to protect mode ..
Command mode: Interface Mode
Default: The default violation mode for the port “protect mode”.
Usage Guide: The port violation mode can only be set after MAC address binding
function is enabled. If the port violation mode is set to “protect mode”, when the secure
Mac address number exceeds maximum secure MAC address number set, only the
dynamic MAC address learning ability is disabled; if the violation mode is set to
“shutdown”, then the port will be shutdown when the secure Mac address number
exceeds maximum secure MAC address number set, the user can manually enable the
port by “no shutdown” command.
Example: Set the violation mode for port1 to “shutdown”.
Switch(Config)#interface Ethernet 1/1
Switch(Config-Ethernet1/1)# port security action shutdown