CCNA · Lesson 1 of 13

What Is a VLAN? Explained from Scratch

If you have never configured a switch, start here. In 5 minutes you will understand what a VLAN is and why every company uses them.

By topologia.appUpdated: Nov 13, 2026⏱ 5 min❓ 4 questions📶 Level beginner

In a nutshell

A VLAN splits one switch into several separate networks. What happens in one VLAN (a broadcast, for example) does not reach the others.

In this lesson
  1. The problem: everybody hears everything
  2. The solution: invisible walls
  3. What are VLANs for?
  4. What if two VLANs need to talk?
  5. What you must remember
  6. Exam-style questions

The problem: everybody hears everything

Picture an office in one huge room where Sales, Accounting and Support work together. If someone shouts, everyone hears it. A network without VLANs works the same way: when a PC sends a broadcast (a message "for everyone", such as an ARP request), the switch forwards it out of every port.

With 10 PCs that is fine. With 500 PCs, that "noise" eats bandwidth, and anyone can see traffic that is not meant for them.

The solution: invisible walls

A VLAN (Virtual LAN) is like building invisible walls inside that room. With the same physical switch you create several separate networks: Sales only hears Sales and Accounting only hears Accounting.

✕ Without VLANs

Without VLANs: the broadcast from PC1 reaches PC2, PC3 and PC4 ONE NETWORK · everyone gets the broadcast SW1 PC1 PC2 PC3 PC4

✓ With VLANs

Switch SW1 with PC1 and PC2 in VLAN 10 and PC3 and PC4 in VLAN 20 VLAN 10 · SALES · 192.168.10.0/24VLAN 20 · ACCOUNTING · 192.168.20.0/24 SW1 PC1 PC2 PC3 PC4 Fa0/1Fa0/2Fa0/3Fa0/4
Watch the dot: it is a broadcast from PC1. Without VLANs it reaches everyone; with VLANs it only reaches PC2, which is in the same VLAN.Edit in the editor ↗

Key idea for the exam

Each VLAN is a separate broadcast domain and normally uses its own IP subnet. One VLAN = one subnet.

What are VLANs for?

Security

Wi-Fi guests cannot see the Accounting servers because they are in another VLAN.

Less broadcast

Broadcasts stay inside their VLAN. Less noise, better performance.

Order and flexibility

You group people by role (Sales, Voice, Management), not by where they sit.

Real example

Anna (Sales) works on floor 1 and Luke (Sales) on floor 3. They are connected to different switches, but both belong to VLAN 10. For the network, it is as if they were in the same room.

What if two VLANs need to talk?

VLANs separate traffic at Layer 2. For VLAN 10 to talk to VLAN 20 you need a Layer 3 device: a router or a Layer 3 switch. You will see this in the router-on-a-stick and Layer 3 switch lessons.

What you must remember

  • A VLAN splits one physical switch into several logical networks.
  • Each VLAN is a separate broadcast domain and uses its own subnet.
  • Benefits: security, less broadcast and grouping by role.
  • Different VLANs need a Layer 3 device to communicate.

Check what you learned

4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.

Question 1 of 4 · One answerWhat is a VLAN?
Question 2 of 4 · Choose twoWhich two benefits does implementing VLANs provide? (Choose two.)
Question 3 of 4 · One answerPC1 is in VLAN 10 and PC2 in VLAN 20. Both are connected to the same Layer 2 switch and there is no router. What happens if PC1 pings PC2?
Question 4 of 4 · One answerA 24-port switch has all its ports assigned to VLANs 10, 20 and 30. How many broadcast domains are there on this switch?