Port Security · Finals
Configuration first, verification second, theory third. Reference templates require task-specific adaptation.
Content version 1.1-draft
Search results
Keyboard shortcuts
/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.
Quick explanation
Port Security restricts source MAC addresses on an access port. Dynamic, static and sticky learning can be combined with a maximum address count and a violation action.
Configuration
Replace highlighted placeholders. Configure only the variants required by the task.
Show / Verify
show port-security interface [INTERFACE]
show port-security address
show interfaces status err-disabled
Connectivity verification
Common mistakes
- Maximum too low for attached devices.
- Wrong port type.
- Sticky addresses not saved when persistence is needed.
- Recovering without resolving the violation.
Quick reference and default values
Configuration comparison
Protect vs restrict vs shutdown — All deny unauthorized MAC traffic; restrict reports/counts violations, shutdown err-disables the port.