Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
439
port. This entry is same as the one learnt under the permanent mode.
vlan VLAN-ID
Specifies a VLAN. If no VLAN is specified, the MAC address will be set
with a PVID.
Default
By default, this option is disabled.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
When port security is enabled, if the port mode is configured as delete-on-timeout, the port will
automatically learn the dynamic secured entry which will be timed out. These entries will be aged out
based on the setting specified by the switchport port-security aging command. If the port mode is
permanent, the port will automatically learn permanent secured entries which will not be timed out. The
auto-learned permanent secured entry will be stored in the running configuration.
As the port mode-security state is changed, the violation counts will be cleared, and the auto-permanent
entries will be converted to corresponding dynamic entries. As the port-security state is changed to
disabled, the auto-learned secured entries, either dynamic or permanent with its violation counts are
cleared. As the related VLAN configuration is changed, the auto-learned dynamic secured entries are
cleared.
Permanent secured entry will be kept in the running configuration and can be stored to the NVRAM by
using the copy command. The user configured secure MAC addresses are counted in the maximum
number of MAC addresses on a port.
As a permanent secured entry of a port security enabled port, the MAC address cannot be moved to
another port.
When the maximum setting is changed, the learned address will remain unchanged when the maximum
number increases. If the maximum number is changed to a lower value which is lower than the existing
entry number, the command is rejected.
A port-security enabled port has the following restrictions.
The port security function cannot be enabled simultaneously with 802.1X, MAC (MAC-based
Access Control), JWAC, WAC and IMPB, that provides more advanced security capabilities.
If a port is specified as the destination port for the mirroring function, the port security function
cannot be enabled.
If the port is a link aggregation member port, the port security function cannot be enabled.
When the maximum number of secured users is exceeded, one of the following actions can occur:
Protect - When the number of port secure MAC addresses reaches the maximum number of
users that is allowed on the port, the packets with the unknown source address is dropped until
some secured entry is removed to release the space.
Restrict - A port security violation restricts data and causes the security violation counter to
increment.
Shutdown - The interface is disabled, based on errors, when a security violation occurs.
Example
This example shows how to configure the port security mode to be permanent, specifying that a
maximum of 5 secure MAC addresses are allowed on the port.