Switching (VLAN/STP)

switchport trunk allowed vlan <list>

Limit which VLANs traverse the trunk. Use 'add'/'remove' to modify.

Works on: SwitchMode: iface

Example

SW1(config-if)# switchport trunk allowed vlan 10,20,30
Run this command live

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

Limit which VLANs traverse the trunk. Use 'add'/'remove' to modify.

Example of "switchport trunk allowed vlan <list>"

SW1(config-if)# switchport trunk allowed vlan 10,20,30

More Switching (VLAN/STP) commands

← Back to the full command reference

switchport trunk allowed vlan <list> — network CLI command reference · NetForge-AI