Ad Code

Week 1-Layer 2: Switching Basics & VLANs

 

"Switching basics diagram how switches forward packets using MAC addresses."

 Introduction

Welcome to Week 1 of our CCNA learning journey This week we dive into the foundation of Layer 2 networking, where switches and VLANs play the starring role.

Big failure in cloud industry read more.

https://techbyrathore.blogspot.com/2026/04/cloud-misconfiguration-data-breach-risk.html?m=1

If you’ve ever wondered how multiple devices in a company network communicate without chaos, the answer lies in Switching and VLANs. By the end of this blog, you’ll understand:

  • What switches actually do.

  • Why VLANs are used in real networks.

  • A simple packet example to make VLANs crystal clear.


 Switching Basics

Switches are like the traffic managers of a network. Unlike hubs, which flood data everywhere, switches make smart forwarding decisions using MAC addresses.

  • Each port on a switch learns the MAC address of the device connected to it.

  • When a frame enters, the switch checks its MAC Address Table (CAM table) and forwards it only to the correct port.

  • This reduces collision domains and increases efficiency.

👉 In simple words: Switching = Smarter, faster, and more secure communication.


 What is a VLAN?

A VLAN (Virtual Local Area Network) is a way to divide a single physical switch into multiple logical networks.

Think of it like rooms in a big office:

  • All departments (HR, Finance, IT) may use the same building (switch).

  • But each department has its own separate VLAN so their communication stays private and organized.

 Without VLANs → Everyone is in one big broadcast domain.
 With VLANs → Broadcast traffic is contained, and security improves.


 Why VLANs Are Used in Real Networks

Here’s why almost every modern network uses VLANs:

  1. Segmentation & Security – Keeps different departments isolated.

  2. Better Performance – Limits unnecessary broadcasts.

  3. Flexibility – Devices can be grouped by function, not location.

  4. Scalability – Easier to expand and manage.

VLAN segmentation example HR and IT on separate VLANs in the same switch.



 VLAN Packet Example (Step by Step)

Let’s imagine a real-world scenario:

Network Setup:

  • VLAN 10 = HR Department

  • VLAN 20 = IT Department

 HR Employee sends a packet to another HR Employee (both in VLAN 10):

  • Switch checks VLAN tag → sees VLAN 10.

  • Forwards only within VLAN 10 ports.

  • Packet never reaches VLAN 20 devices.

If HR Employee tries to send data to IT Employee:

👉 This isolation is why VLANs are so powerful in securing networks.


 Key Takeaways

  • Switches forward data intelligently using MAC addresses.

  • VLANs logically divide a switch into multiple isolated broadcast domains.

  • They improve security, performance, and scalability.

  • Real-world networks always rely on VLANs for segmentation.


 Week 1 Coverage

This week, we’ll lightly touch the following Layer 2 concepts:

Stay tuned each day we’ll go one step deeper into Layer 2 networking. 

Day one guide read here;

https://techbyrathore.blogspot.com/2025/08/ccna-day1-introduction-to-networking.html

next blog

https://techbyrathore.blogspot.com/2025/09/blog-post.html

Post a Comment

0 Comments