Editing <span id="firstHeadingTitle">Cisco Commands</span> (section)
Read
Edit
View history
Not logged in
Talk
Contributions
Create account
Log in
Editing
Cisco Commands
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Port Security == === View status of port security on an interface === show port-security interface f0/1 === Activate Port Security on an interface === The port cannot be a dynamic port: switchport mode access Enable Port Security switchport port-security === Set the maximum number of mac addresses that can be used on that port === switchport port-security maximum 1 === Whitelist a specific mac address === switchport port-security mac-address 0001.6311.E7BC === Enable sticky mode to automatically learn mac addresses === switchport port-security mac-address sticky === Port Security Violation Modes === ==== Protect ==== Silently drops packets from unknown MAC addresses while keeping the port up and generating no alerts. switchport port-security violation protect ==== Restrict ==== Drops packets from unknown MAC addresses and logs the violation while incrementing the security counter. switchport port-security violation restrict ==== Shutdown ==== Immediately disables the port when an unknown MAC address is detected, placing it into an error-disabled state. switchport port-security violation shutdown === Port Security Aging === ==== Enable static aging on an interface ==== switchport port-security aging static ==== Enable timed aging on an interface (5 minutes) ==== switchport port-security aging time 5
Summary:
Please note that all contributions to Lucca's Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Lucca's Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
🎨 Theme Settings
Quick Presets
Code & Pre Block Text Color
Code / Pre Text Color
Background
Primary Background
Secondary Background
Tertiary Background
Hover Background
Text
Primary Text
Secondary Text
Muted Text
Accent & Borders
Accent
Accent Dim
Border
Border 2
Header & Sidebar
Header Start
Header End
Sidebar Background
Status Colors
Success
Danger
Warning
Reset to Default
Save & Close