Skip to content

CCNA Day 1: How Switches Work vs Hubs & Hands-On Packet Tracer Lab

CCNA Day 1: Understanding Switches vs Hubs & Your First Packet Tracer Lab

This first lesson of the free CCNA course (sponsored by Boson Software) wastes no time getting hands-on. You'll learn exactly what a network switch does, why it's superior to an old hub, and how to see this in action using Cisco Packet Tracer.

For a foundational overview before diving deeper, check out the Comprehensive Free CCNA Course Introduction: Networking Basics Explained and the Complete CCNA 200-301 Course: Network Devices & Fundamentals Explained.

What is a Network Switch?

A switch is a device that connects multiple computers (or other devices) on a local network using Ethernet cables. Its primary job is to receive data and forward it only to the correct destination device.

  • Physical Connection: Devices connect to switch ports via Ethernet cables, which transmit data as electrical signals.
  • The "Smart" Brain: A switch has intelligence. It learns and remembers which device (identified by its MAC address) is connected to which port.
  • Efficient Forwarding: Unlike a hub, a switch sends data only to the specific device it's intended for, not to everyone on the network.

The Dumb Hub vs. The Smart Switch

To appreciate a switch, you need to understand its predecessor: the hub. A hub is a simple, unintelligent device.

  • How a Hub Works (The Problem): When a hub receives data from a computer, it blindly repeats (broadcasts) that data out to every single port, including devices the message wasn't meant for. This is a major security and efficiency problem.
  • How a Switch Works (The Solution): When a switch receives data, it checks the destination address in the data (the frame). It then looks up its internal table (the CAM table) and forwards the data only out of the specific port where the destination device is located.

Hands-On Lab: Cisco Packet Tracer

The video guides you through a lab to see the hub vs. switch difference in action.

  1. Download Cisco Packet Tracer: Get the free simulation tool from NetAcad.
  2. Download the Lab File: Open the pre-built network file.
  3. Simulation Mode: Switch to "Simulation" mode to slow down network traffic and watch individual data packets (called frames at Layer 2) travel wire by wire.
  4. Test the Hub: Send a ping from one device (e.g., "Harry") to another ("Ron") through a hub. You'll see the ping (an envelope icon) go to all connected devices.
  5. Test the Switch: Send a ping from one device (e.g., "Johnny") to another ("Mark") through a switch. You'll see the ping go only to Mark.

If you need help getting started with the tool, read How to Use Cisco Packet Tracer for Network Simulation and follow a Mastering Packet Tracer: Step-by-Step Guide to Setting Up a Network.

Your First Cisco CLI Command

After the lab, you can look inside the switch's brain.

  1. Click on the switch icon in Packet Tracer.
  2. Go to the CLI tab.
  3. Type enable and press Enter (this enters privileged EXEC mode).
  4. Type show mac-address-table and press Enter.

This command displays the switch's CAM table, showing the MAC addresses it has learned and which port each one is connected to (e.g., Mark is on port Fa0/1).

Key Terminology

  • MAC Address (Layer 2 Address): A unique, burned-in hardware identifier for every network interface card (like in your laptop, phone, or switch port). The switch uses this to identify devices.
  • Frame (Layer 2): The data unit at the Data Link layer. Think of it as the message (including MAC addresses) that a switch processes.
  • Packet (Layer 3): The data unit at the Network layer. This includes IP addresses and is what routers work with. (A packet is encapsulated inside a frame for the switch to forward).
  • CAM Table: The switch's memory table that maps MAC addresses to specific switch ports.

Quiz Time

Test your knowledge with sample CCNA exam questions from Boson ExSim.

Question 1: Which address will a switch use to populate its CAM table?

  • A. Source IP address
  • B. Destination IP address
  • C. Destination MAC address
  • D. Source MAC address (Correct Answer)
    • Explanation: A switch learns a MAC address by looking at the source MAC address of a frame arriving on a port. It then adds that MAC-to-port mapping to its CAM table.

Question 2: Which address will a switch use to make forwarding decisions?

  • A. Source IP address
  • B. Destination IP address
  • C. Destination MAC address (Correct Answer)
  • D. Source MAC address
    • Explanation: A switch forwards a frame by looking at the destination MAC address and finding which port leads to that device in its CAM table.

Bonus: Wireless Access Points (APs)

A Wireless Access Point is an extension of a switch. It connects to the switch via Ethernet and then provides wireless connectivity. Interestingly, in their basic operation, wireless APs operate more like a hub than a switch. Data sent from one wireless device is broadcast to all other wireless devices connected to that AP. This is one reason a wired Ethernet connection is generally faster and more secure than Wi-Fi.


Summary: Today you learned that switches are intelligent Layer 2 devices that use MAC addresses to efficiently forward data only to the correct destination, making them a huge upgrade over hubs. You also got hands-on experience using Packet Tracer and even issued your first Cisco CLI command! Day 2 will cover routers and the OSI model, where you can also dive into CCNA Routing Fundamentals: Connected and Local Routes Explained.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Related summaries

CCNA Course Ep 2: How Routers Connect Networks & The Internet Works

CCNA Course Ep 2: How Routers Connect Networks & The Internet Works

In this free CCNA training episode, you'll learn why routers are needed to connect different networks and how they enable communication between devices on separate IP subnets. Watch a detailed simulation of ARP, DNS, and HTTP requests as a packet travels across a network to access a web server, demonstrating the complete process of how the internet works step-by-step.

CCNA Course Episode 2: How Routers Work and Connect Networks

CCNA Course Episode 2: How Routers Work and Connect Networks

In this episode, we explore the role of routers in connecting different networks, using a CCNA lab to demonstrate how data travels across networks. Learn how a switch and router work together to enable internet communication, from ARP requests to DNS queries and HTTP requests, with real-time packet tracer simulations.

How Routers Connect Networks: CCNA Course Episode 2 with Cisco Lab Demo

How Routers Connect Networks: CCNA Course Episode 2 with Cisco Lab Demo

In this second episode of the free CCNA course, we explore why routers are essential for connecting different networks and enabling internet access. Watch a live Packet Tracer simulation demonstrating how frames and packets travel from a computer to a web server, including ARP, DNS, and routing processes.

CCNA Course: How Packets Flow Through the OSI & TCP/IP Models

CCNA Course: How Packets Flow Through the OSI & TCP/IP Models

In this episode, we follow a packet step-by-step across a network to see how each layer of the OSI and TCP/IP models works. Learn about encapsulation, de-encapsulation, and the roles of switches, routers, and protocols like TCP, UDP, and HTTPS in real-world data transfer.

How Routers Work: Connecting Networks in Your CCNA Episode 2

How Routers Work: Connecting Networks in Your CCNA Episode 2

Discover how routers connect different networks and enable internet communication in this second episode of a free CCNA course. Learn the step-by-step process of how data travels across networks using ARP, IP addressing, and routing, including a live demonstration of Johnny accessing a coffee website through a router.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes