13-93
Current secure MAC address number for the port.
Configured MAC Addresses Current secure static MAC address number for the
Lock Timer Whether locking timer (timer timeout) is enabled
Mac-Learning function Whether the MAC address learning function is
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