VLAN segmentation
One switch, separate broadcast domains
A virtual LAN (VLAN) divides a bridged Ethernet network into logical groups. A broadcast from a host in VLAN 10 is forwarded only toward eligible ports in that VLAN, not to all ports in the building. A normal access port connects an endpoint to one data VLAN; in our simple model the endpoint sends and receives untagged frames. The switch classifies incoming frames using the port membership.
Trace a broadcast
The two-switch diagram has four hosts. The link marked ===== carries both VLANs; its details come in the next lesson. Assume links forward, membership is correct, and there is no router. A broadcast from A reaches C via the inter-switch link; neither B nor D receives it. A broadcast from B reaches D only. Each source port is excluded from its own flooding set.
A -- p1 [S1] t1 ===== t1 [S2] p1 -- CB -- p2 [S1] [S2] p2 -- DA,C: VLAN 10 B,D: VLAN 20MAC learning and IP boundaries
In this independent-learning example, the switch records a source MAC together with its VLAN and incoming port. A learned address in VLAN 10 does not establish a destination in VLAN 20. Unknown unicast flooding also stays within eligible ports of the VLAN. Normally each VLAN has a distinct IP subnet; communication between VLANs needs a Layer 3 forwarding device and an appropriate policy. VLAN membership and IP subnet membership are separate concepts: merely assigning two endpoints addresses from the same IP prefix does not join their VLANs.
Plan data, voice and management separately
A phone and its attached computer may share one physical port while using distinct voice and data VLANs if the switch and phone support that feature. The voice VLAN alone does not guarantee call quality; prioritization is a separate policy. A management VLAN carries authorized administrative traffic; restrict access to it and verify an alternate management path before any changes. VLANs neither encrypt frames nor enforce user identity. Do not treat them as your only security control.
Practice on paper
Move C to VLAN 20 in the diagram, leaving D and B unchanged. Now A has no other host in VLAN 10, while B can broadcast to C and D. Predict the result before checking the answer. Next learn how the shared link keeps frames in the correct logical group.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
VLAN segmentation — knowledge check
Reason about VLAN membership, forwarding and diagnostic evidence.
A sends a broadcast in the original diagram. Which other host receives it?
What classifies an ordinary untagged frame on the access port in this example?
A and B use the same IPv4 prefix but remain in distinct VLANs. What follows?
What is needed for intentional IP communication between VLANs?
What does a voice VLAN by itself guarantee?