133
Switch(Config-Ethernet1/1)# switchport port-security timeout 30
4.5.1.2.2.4 switchport port-security mac-address
Command: switchport port-security mac-address <mac-address>
no switchport port-security mac-address <mac-address>
Function: Add static secure MAC address; the “no switchport port-security
mac-address” command deletes static secure MAC address.
Command mode: Interface Mode
Parameter: <mac-address> stands for the MAC address to be added/deleted.
Usage Guide: The MAC address binding function must be enabled before static secure
MAC address can be added.
Example: Add MAC 00-03-0F-FE-2E-D3 to port1.
Switch(Config)#interface Ethernet 1/1
Switch(Config-Ethernet1/1)#switchport port-security mac-address 00-03-0F-FE-2E-D3
4.5.1.2.2.5 clear port-security dynamic
Command: clear port-security dynamic [address <mac-addr> | interface
<interface-id> ]
Function: Clear the Dynamic MAC addresses of the specified port.
Command mode: Admin Mode
Parameter: <mac-addr> stands MAC address; <interface-id> for specified port number.
Usage Guide: The secure port must be locked before dynamic MAC clearing operation
can be perform in specified port. If no ports and MAC are specified, then all dynamic MAC
in all locked secure ports will be cleared; if only port but no MAC address is specified, then
all MAC addresses in the specified port will be cleared.
Example: Delete all dynamic MAC in port1.
Switch#clear port-security dynamic interface Ethernet 1/1
4.5.1.2.2.6 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
switchport port-security maximum” command restores the maximum secure address
number of 1.
Command mode: Interface Mode