Interview Prep/Networking/Network Models, TCP, UDP & Ports

What are VLANs and how do they work?

IntermediateConceptNetwork Models, TCP, UDP & Ports
Answer

A VLAN splits one physical switch fabric into multiple isolated L2 broadcast domains by adding an 802.1Q tag (a 12-bit ID, 1–4094) to Ethernet frames. Access ports carry one untagged VLAN; trunk ports carry many tagged VLANs. Traffic between VLANs needs a router (or L3 switch).

Cloud analogues are subnets and VPCs; VLANs show up when you work with on-prem data centers, Direct Connect or ExpressRoute private VIFs, and bare-metal Kubernetes.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports