
18-86
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 as 4 for port1.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)#switchport port-security maximum 4
18.2.8 switchport port-security violation
Command:
switchport port-security violation {protect | shutdown} [recovery <30-3600>]
no switchport port-security violation
Function:
Configure the port violation mode. The no restores the violation mode to protect.
Command Mode:
Port mode.
Parameter:
protect
refers to protect mode
shutdown
refers to shutdown mode
recovery:
configure the border port can be recovered automatically after implement shutdown violation operation
<30-3600>:
the recovery time, do not recover it by default
Default:
The port violation mode is
protect
by default.