Security

switchport port-security maximum <n>

Allow at most N MAC addresses on this port.

Works on: SwitchMode: iface
Run this command live

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

Allow at most N MAC addresses on this port.

More Security commands

← Back to the full command reference

switchport port-security maximum <n> — network CLI command reference · NetForge-AI