Switching Fundamentals

Understand switching concepts such as MAC address tables, MAC filtering, and VLAN fundamentals.

πŸ” Switching Fundamentals

MAC address tables, MAC filtering, and VLANs explain how switches think, learn, secure, and segment networks. These are core CCST concepts and are heavily used in Cisco Packet Tracer labs and real networks built using Cisco Systems devices.

🧠 PART 1: MAC Address Tables

MAC Address Table Diagram Switch MAC Learning Process

πŸ“Œ What Is a MAC Address Table?

A MAC address table (also called a CAM table) is a memory table inside a switch that maps:

    MAC Address  β†’  Switch Port
      
Purpose: Helps the switch forward frames only to the correct port.

πŸ” How a Switch Learns MAC Addresses

πŸ§ͺ Example Network

    PC1 ──(Fa0/1) Switch (Fa0/2)── PC2
      
  1. PC1 sends a frame
  2. Switch reads the source MAC
  3. Stores it in MAC table
  4. If destination MAC is known β†’ forward
  5. If unknown β†’ flood to all ports (except incoming)

πŸ“Š Sample MAC Address Table

MAC Address Port
AA:BB:CC:11 Fa0/1
DD:EE:FF:22 Fa0/2
Switches learn source MAC, not destination MAC.

❌ What If MAC Table Is Empty?

🧠 Real-World Benefits

πŸ” PART 2: MAC Filtering (MAC-Based Security)

MAC Filtering Concept MAC Filtering on Switch Unauthorized Device Blocked

πŸ“Œ What Is MAC Filtering?

MAC filtering allows or blocks devices based on their MAC address.

β€œOnly approved devices are allowed on the network.”

πŸ”§ How MAC Filtering Works

  1. Admin defines allowed MAC addresses
  2. Switch checks device MAC
  3. Allows or blocks access

πŸ§ͺ Example (Office Security)

    Allowed:
    AA:BB:CC:11 (PC)
    DD:EE:FF:22 (Printer)
    
    Unknown laptop β†’ Blocked
      

βœ… Advantages

❌ Limitations (Exam Important)

MAC filtering = Basic security, not foolproof

🧠 Where MAC Filtering Is Used

🧩 PART 3: VLAN Concepts

VLAN Concept Diagram VLAN Segmentation Multiple VLANs on Switch

πŸ“Œ What Is a VLAN?

A VLAN (Virtual LAN) is a logical network created inside a switch.

Devices can be separated even if they are on the same physical switch.

🧠 Why VLANs Are Needed

Without VLAN With VLAN
One big broadcast domain Separate networks
More traffic Less broadcast traffic
Low security Better security

πŸ§ͺ Example (Same Switch, Different VLANs)

    Switch
    β”œβ”€β”€ VLAN 10 β†’ HR PCs
    β”œβ”€β”€ VLAN 20 β†’ IT PCs
      
VLAN = Separate broadcast domains

🧠 Key Rule

VLANs cannot communicate without a Layer 3 device.

πŸ”€ Inter-VLAN Communication

πŸ“Š VLAN Benefits (Exam-Ready)

Benefit Explanation
Security Departments isolated
Performance Reduced broadcast traffic
Flexibility Logical grouping
Scalability Easy expansion

🧠 VLAN IDs (Quick Facts)

πŸ” MAC Table + VLAN (IMPORTANT)

Switch maintains separate MAC tables per VLAN.
    VLAN 10: MAC A β†’ Fa0/1
    VLAN 20: MAC A β†’ Fa0/3
      

Same MAC address in different VLANs is allowed.

πŸ“Š Switching Fundamentals – Combined Summary

Concept Purpose
MAC Address Table Efficient forwarding
MAC Filtering Device-level security
VLAN Network segmentation