Computer Networking · Intermediate level

Intermediate level · Module 3: Switching and VLANs · Lesson 1 of 3

How Switches Work

Understand how switches learn and forward traffic.

In this lesson you will

  • Explain MAC learning and forwarding
  • Read a MAC address table

Key concepts

MAC addressMAC tablefloodingcollision and broadcast domains

The lesson

A switch learns which MAC address is on each port by reading the source of incoming frames, building a MAC address table.

It forwards frames only to the right port; unknown destinations and broadcasts are flooded to all ports in the same VLAN.

Each switch port is its own collision domain; the whole VLAN is one broadcast domain.

Step by step

  1. Clear and view the MAC table.
  2. Generate traffic.
  3. Observe the table filling.
  4. Explain flooding.

Practice activity

Observe and explain MAC learning in Packet Tracer.

Expected result: A correct explanation with MAC table evidence.

Check your understanding

  1. How does a switch learn MAC addresses?

    Show answer

    From the source address of incoming frames.

  2. What happens to a broadcast frame?

    Show answer

    It is flooded to all ports in the VLAN.

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.