Specifications

145
DCS-3950 series Ethernet switch manual
8.5.1.2.2 Mac Address Binding configuration Command List
8.5.1.2.2.1 switchport port-security
Command: switchport port-security
no switchport port-security
Function: Enable MAC address binding function. The ‘no switchport-security’
command disables the MAC address binding function for the port and restores the MAC
address learning function for the port.
Command mode: Interface Mode
Default: MAC address binding is not enabled by default.
Usage Guide: The MAC address binding function, Spanning Tree and Port Aggregation
functions are mutually exclusive. Therefore, if MAC binding function for a port is to be
enabled, the Spanning Tree and Port Aggregation functions must be disabled, and the
port enabling MAC address binding must not be a Trunk port.
Example: Enable MAC address binding function for port 1.
Switch(Config)#interface Ethernet 0/0/1
Switch(Config-Ethernet0/0/1)#switchport port-security
8.5.1.2.2.2 switchport port-security convert
Command: switchport port-security convert
Function: Convert dynamic secure MAC addresses learned by the port to static secure
MAC addresses.
Command mode: Interface Mode
Usage Guide: The port dynamic MAC convert command can only be executed after the
secure port is locked. After this command has been executed, dynamic secure MAC
addresses learned by the port will be converted to static secure MAC addresses. The
command does not reserve configuration.
Example: Converting MAC addresses in port 1 to static secure MAC addresses.
Switch(Config)#interface Ethernet 0/0/1
Switch(Config-Ethernet0/0/1)#switchport port-security convert
8.5.1.2.2.3 switchport port-security lock
Command: switchport port-security lock
switchport port-security maximum
<value>
no switchport port-security maximum
<value>
Set the maximum number of secure
MAC addresses for a port; the ‘no
switchport port-security maximum
<value>‘ command restores the default
value.
switchport port-security violation
{protect | shutdown}
no switchport port-security violation
Set the violation mode for the port; the
no switchport port-security violation
‘ command restores the default setting.