188
EES4710BD 10 Slots L2/L3/L4 Chassis Switch
2. Lock the MAC addresses for a port
Command Explanation
Interface Mode
switchport port-security lock
no switchport port-security lock
Locks the port. When a port is locked, the
MAC address learning function for the port
will be disabled: the “no switchport
port-security lock” command restores the
MAC address learning function for the port.
switchport port-security convert
Converts dynamic secure MAC addresses
learned by the port to static secure MAC
addresses.
switchport port-security timeout <value>
no switchport port-security timeout
Enables port locking timer function; the “no
switchport port-security timeout” restores
the default setting.
switchport port-security mac-address
<mac-address>
no switchport port-security mac-address
<mac-address>
Adds static secure a MAC address; “no
switchport port-security mac-address”
command deletes static secure MAC address.
Admin Mode
clear port-security dynamic [address
<mac-addr> | interface <interface-id>]
Clears dynamic MAC addresses learned by
the specified port.
3. MAC address binding property configuration
Command Explanation
Interface Mode
switchport port-security maximum <value>
no switchport port-security maximum <value>
Sets the maximum number o f secure
MAC addresses for a port; the “no
switchport port-security maximum
command restores the default value.
switchport port-security violation {protect |
shutdown}
no switchport port-security violation
Sets the violation mode for the port; “no
switchport port-security violation
command restores the default setting.