Interface

encapsulation dot1Q <vlan>

Tag the subinterface with this VLAN ID. Must match the trunk's allowed VLAN.

Works on: RouterMode: iface
Run this command live

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

Tag the subinterface with this VLAN ID. Must match the trunk's allowed VLAN.

More Interface commands

← Back to the full command reference

encapsulation dot1Q <vlan> — network CLI command reference · NetForge-AI