Cisco Systems SPS224G4 Switch User Manual


 
Address Table Commands
port security
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide 85
5
port security
The port security Interface Configuration mode command locks the port to block
unknown traffic and prevent the port from learning new addresses. To restore
defaults, use the no form of this command.
Syntax
port security [forward | discard | discard-shutdown] [trap
seconds
]
no port security
Parameters
forward — Forwards packets with unlearned source addresses, but does
not learn the address.
discard — Discards packets with unlearned source addresses. This is the
default if no option is indicated.
discard-shutdown — Discards packets with unlearned source addresses.
The port is also shut down.
seconds
— Sends SNMP traps and defines the minimum amount of time in
seconds between consecutive traps. (Range: 1-1000000)
max — Maximum number of addresses that can be learned on the interface.
(Range: 1-128)
Default Configuration
This setting is disabled.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
There are no user guidelines for this command.