Total MAC Addresses
Configured MAC Addresses
Lock Timer
Mac-Learning function
13.2.6 switchport port-security
Command:
switchport port security
no switchport port security
Function:
Enable MAC address binding function for the port; the "no switchport port-security" command
disables the MAC address binding function for the port.
Command mode:
Port Mode.
Default:
MAC address binding is not enabled by default.
Usage Guide:
The MAC address binding function and Port Aggregation functions are mutually exclusive.
Therefore, if MAC binding function for a port is to be enabled, the 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 1and.
Switch(config)#interface Ethernet 1/0/1
Switch(Config-If-Ethernet1/0/1)# switchport port security
for the port.
Current secure MAC address number for the port.
Current secure static MAC address number for the
port.
Whether locking timer (timer timeout) is enabled
for the port.
Whether the MAC address learning function is
enabled.
13-93