Switching (VLAN/STP)

switchport mode trunk

Set the port to trunk — carries 802.1Q-tagged frames for multiple VLANs. For switch-switch / switch-router links.

Works on: SwitchMode: iface
Run this command live

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

Set the port to trunk — carries 802.1Q-tagged frames for multiple VLANs. For switch-switch / switch-router links.

More Switching (VLAN/STP) commands

← Back to the full command reference

switchport mode trunk — network CLI command reference · NetForge-AI