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.
Frequently asked
What does the "encapsulation dot1Q <vlan>" command do?
Tag the subinterface with this VLAN ID. Must match the trunk's allowed VLAN.