SGS-6340 Series User Manual

Table Of Contents
21-110
switchport port-security
no switchport port-security
Enable MAC address binding function for
the port and lock the port. When a port is
locked, the MAC address learning function
for the port will be disabled: the “no
switchport port-security command
disables the MAC address binding function
for the port, and restores the MAC address
learning function for the port.
2. Lock the MAC addresses for a port
Command Explanation
Port Mode
switchport port-security aging {static |
time <value> | type {absolute |
inactivity}}
no switchport port-security violation
aging {static | time | type}
Enable the aging entries of port-security,
and specify the aging time and type on the
interface.
switchport port-security mac-address
<mac-address> [vlan <vlan-id>]
no switchport port-security
mac-address <mac-address> [vlan
<vlan-id>]
Configure the static secure MAC on the
interface, the no command cancels the
configuration.
Admin Mode
clear port-security dynamic [address
<mac-addr> | interface <interface-id>]
Clear dynamic MAC addresses learned by
the specified port.
3. MAC address binding property configuration
Command Explanation
Port Mode
switchport port-security maximum
<value> [vlan <vlan-list>]
no switchport port-security maximum
<value> [vlan <vlan-list>]
Configure the maximum number of the
secure MAC allowed by the interface, if
specifying VLAN parameter, it means the
maximum number in the configured
VLANs. The no command cancels the
maximum number of the secure MAC
configured by the interface.