8 switchport port-security mac-address, 9 switchport port-security maximum – PLANET XGS3-24040 User Manual
Page 191
12-57
switchport port-security lock
no switchport port-security lock
Function:
Lock the port. After the port is locked, the MAC-address learning function will be shut down; the no
operation of this command will reset the MAC-address learning function.
Command Mode:
Port Configuration Mode.
Default:
Ports are unlocked.
Usage Guide:
Ports can only be locked after the MAC-address binding function is enabled. When a port becomes
locked, its MAC learning function will be disabled.
Examples:
Lock port 1.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)#switchport port-security lock
12.2.8 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 switchport port-security mac-address” 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-30-4f-FE-2E-D3 to port1.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)#switchport port-security mac-address 00-30-4f-FE-2E-D3
12.2.9 switchport port-security maximum
Command:
switchport port-security maximum <value>
no switchport port-security maximum