Security

switchport port-security

Enable port-security to limit which/how many MACs can use the port.

Works on: SwitchMode: iface
Run this command live

Don't just read it — type switchport port-security 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" command do?

Enable port-security to limit which/how many MACs can use the port.

More Security commands

← Back to the full command reference

switchport port-security — network CLI command reference · NetForge-AI