Address Table Commands
switchport port-security mode maximum
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
98
5
Syntax
switchport port-security
no switchport port-security
Parameters
N/A
Default Configuration
The port security is disabled by default.
Command Mode
Interface Configuration mode
Example
switchxxxxxx(config)#
interface gi1
switchxxxxxx(config-if)#
switchport port-security
switchport port-security mode maximum
To set the port security learning mode and the maximum number of MAC
addresses that can be learned on an interface, use the switchport port-security
mode maximum Interface Configuration mode command.
To revert to its default settings, use the no form of this command.
Syntax
switchport port-security mode {classic | dynamic} maximum
max-addr
action {
discard | {discard-snmp-log trap-freq
seconds
} | {discard-snmp-log-shutdown
trap-freq
seconds
} | forward}
no switchport port-security maximum
Parameter
•
classic— Classic lock. All learned MAC addresses on the port are locked
and the switch learns up to the maximum number of addresses allowed on
the port. The learned addresses are not subject to aging or re-learning.