mac

Commands for MAC Address Table Configuration
216
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
16.2.14 switchport port-security timeout
Command: switchport port-security timeout <value>
no switchport port-security timeout
Function: Set the timer for port locking; the no command restores the default setting.
Parameter: <value> is the timeout value, the valid range is 0 to 300s.
Command mode: Port Mode.
Default: Port locking timer is not enabled by default.
Usage Guide: The port locking timer function is a dynamic MAC address locking
function. MAC address locking and conversion of dynamic MAC entries to secure
address entries will be performed on locking timer timeout. The MAC address binding
function must be enabled prior to running this command.
Example: Set port1 locking timer to 30 seconds.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)#switchport port-security timeout 30
16.2.15 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