Switching (VLAN/STP)

switchport access vlan <id>

Place the access port in the given VLAN.

Works on: SwitchMode: iface
Run this command live

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

Place the access port in the given VLAN.

More Switching (VLAN/STP) commands

← Back to the full command reference

switchport access vlan <id> — network CLI command reference · NetForge-AI