Specifications
146
DCS-3950 series Ethernet switch manual
no switchport port-security lock
Function: Lock down the specified port. If a port is locked, the MAC address learning of
the port will be disabled. If no is put in front of this command, MAC address learning will be
restored.
Command mode: Interface Mode.
Default: All interfaces are not locked by default.
Usage Guide: This command is only available when the MAC address binding function of
the port has been enabled. When a port is locked, the dynamic learning of MAC
addresses for the port will be disabled.
Example: Lock port 0/0/1.
Switch(Config)#interface Ethernet 0/0/1
Switch(Config-Ethernet0/0/1)#switchport port-security lock
8.5.1.2.2.4 switchport port-security timeout
Command: switchport port-security timeout <value>
no switchport port-security timeout
Function: Set the timer for port locking; the ‘no switchport port-security timeout’
command restores the default setting.
Parameter: < value> is the timeout value, the valid range is 0 to 300s.
Command mode: Interface 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 0/0/1
Switch(Config-Ethernet0/0/1)# switchport port-security timeout 30
8.5.1.2.2.5 switchport port-security mac-address
Command: switchport port-security mac-address <mac-address>
no switchport port-security mac-address <mac-address>
Function: Add a static secure MAC address; the ‘no port-security mac-address’
command deletes a static secure MAC address.
Command mode: Interface Mode
Parameters: <mac-address> stands for the MAC address to be added/deleted.
Usage Guide: The MAC address binding function must be enabled before static secure
MAC address can be added.
Example: Add MAC 00-03-0F-FE-2E-D3 to port1.
Switch(Config)#interface Ethernet 0/0/1
Switch(Config-Ethernet0/0/1)#switchport port-security mac-address 00-03-0F-FE-2E-D3