Security

switchport port-security violation {shutdown|restrict|protect}

What to do when an unauthorised MAC appears. Shutdown is default and most secure.

Works on: SwitchMode: iface
Run this command live

Don't just read it — type switchport port-security violation {shutdown|restrict|protect} in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "switchport port-security violation {shutdown|restrict|protect}" command do?

What to do when an unauthorised MAC appears. Shutdown is default and most secure.

More Security commands

← Back to the full command reference

switchport port-security violation {shutdown|restrict|protect} — network CLI command reference · NetForge-AI