5 switchport port-security, 6 switchport port-security convert, 7 switchport port-security lock – PLANET XGS3-24040 User Manual
Page 190
12-56
12.2.5 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/1
Switch(Config-If-Ethernet1/1)# switchport port security
12.2.6 switchport port-security convert
Command:
switchport port-security convert
Function:
Converts dynamic secure MAC addresses learned by the port to static secure MAC addresses, and
disables the MAC address learning function for the port.
Command mode:
Port Mode.
Usage Guide:
The port dynamic MAC convert command can only be executed after the secure port is locked. After
this command has been executed, dynamic secure MAC addresses learned by the port will be
converted to static secure MAC addresses. The command does not reserve configuration.
Example:
Converting MAC addresses in port 1 to static secure MAC addresses.
Switch(config)#interface Ethernet 1/1
Switch(Config-If-Ethernet1/1)# switchport port-security convert
12.2.7 switchport port-security lock
Command: