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.
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner