The port-security enable command enables the port security function on an interface.
The undo port-security enable command disables the port security function on an interface.
By default, port security is disabled on an interface.
GE interface view, Ethernet interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view
Usage Scenario
After port security is enabled on an interface, MAC address entries learned by the interface are stored in the MAC address table as secure dynamic MAC address entries. By default, secure dynamic MAC addresses will not be aged out. If the aging time of secure dynamic MAC address entries is set, these entries will be aged out. After the device restarts, secure dynamic MAC address entries are lost and need to be relearned. You can also create secure static MAC addresses which do not age out.
Port security has the following functions:
Precautions