
270 Address Table Commands
Syntax
port security [discard]
no port security
•
discard
— Discards frames with unlearned source addresses. This is the
default if no option is indicated.
Default Configuration
Disabled—No port security
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet)
mode
User Guidelines
When port security is enabled on an interface, all dynamic entries learned up
to that point are flushed, and new entries can be learned only to the limit set
by the port security max command. The default limit is 100 dynamic MAC
addresses.
Example
In this example, frame forwarding is enabled without learning, and with traps
sent every 100 seconds on port gi1/0/1.
console(config)#interface gigabitethernet 1/0/1
console(config-if-1/0/1)#port security trap 100
port security max
Use the port security max command in Interface Configuration mode to
configure the maximum addresses that can be learned on the port while the
port is in port security mode. To return to the system default, use the no form
of this command.
Syntax
port security max
max-addr
no port security max
2CSPC4.XModular-SWUM200.book Page 270 Thursday, March 10, 2011 11:18 AM