Reference Guide
Network Security 229
•
Forward
— Forward the packets from an unknown source,
without learning the MAC address.
•
Shutdown
— Discard the packet from any unlearned source, and
shut down the port. Ports remain shutdown until they are
reactivated, or the device is reset.
–
Trap
— Enable/disable traps being sent when a packet is received on a
locked port.
–
Trap Frequency (1-1000000)
— Enter the amount of time (in
seconds) between traps.
Configuring Port Security Using CLI Commands
The following table summarizes the CLI commands for configuring port
security.
Table 9-1. Port Security CLI Commands
CLI Command Description
set interface active {interface-
id}
Reactivates an interface that is
shut down due to port security
reasons.
port security max {max-addr}
no port security max
Specifies the maximum number of
MAC addresses that can be learned
on the port.
Use the no form of this command
to restore the default
port security mode {max-addresses
| lock}
no port security mode
Configures the port security
learning mode.
Use the no form of this command
to restore the default
configuration.
port security [forward | discard |
discard-shutdown] [trap seconds]
no port security
Enables port security on an
interface.
Use the no form of this command
to disable port security on an
interface.










