mac

179
Switch(Config-If-Ethernet1/1)#switchport port-security lock
5.2.11 switchport port-security mac-address
Command: switchport port-security mac-address <mac-address>
no switchport port-security mac-address <mac-address>
Function: Add a static secure MAC address; the no command deletes a static secure
MAC address.
Command mode: Port Mode.
Parameters: <mac-address> stands for the MAC address to be added or deleted.
Usage Guide: The MAC address binding function must be enabled before static secure
MAC address can be added.
Example: Adding MAC 00-03-0F-FE-2E-D3 to port1.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)#switchport port-security mac-address 00-03-0F-FE-2E-D3
5.2.12 switchport port-security maximum
Command: switchport port-security maximum <value>
no switchport port-security maximum
Function: Sets the maximum number of secure MAC addresses for a port; the no
command restores the maximum secure address number of 1.
Command mode: Port Mode.
Parameter: < value> is the up limit for static secure MAC address, the valid range is 1 to
128.
Default: The default maximum port secure MAC address number is 1.
Usage Guide: The MAC address binding function must be enabled before maximum
secure MAC address number can be set. If secure static MAC address number of the port
is larger than the maximum secure MAC address number set, the setting fails; extra
secure static MAC addresses must be deleted, so that the secure static MAC address
number is no larger than the maximum secure MAC address number for the setting to be
successful.
Example: Set the maximum secure MAC address number as 4 for port1.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)#switchport port-security maximum 4
5.2.13 switchport port-security timeout