225
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:
Interface 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-Ethernet1/1)# port-security convert
7.6.1.3.4 port-security mac-address
Command:port-security mac-address <mac-address>
No port-security mac-address <mac-address>
Function:
Adds a static secure MAC address; the “
no port-security mac-address”
command deletes a static secure MAC address.
Command mode:
Interface Mode
Parameters:
<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:
Adding MAC 00-03-0F-FE-2E-D3 to port1.
Switch(Config)#interface Ethernet 1/1
Switch(Config-Ethernet1/1)# port-security mac-address 00-03-0F-FE-2E-D3
7.6.1.3.5 port-security maximum
Command:port-security maximum <value>
no port-security maximum
Function:
Sets the maximum number of secure MAC addresses for a port; the “
no
maximum
” command restores the maximum secure address number of 1.
Command mode:
Interface 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.