Skip to content

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

Episode 2: How Routers Connect Networks & The Internet Works

Welcome to Episode 2 of the free CCNA course! In this episode, we move beyond switches to explore routers, the devices that connect networks and make the internet possible.

A huge shout out to Boson Software for sponsoring this free course. Check out their award-winning CCNA/CCNP labs and practice exams (link below).

Why Do We Need a Router?

In Episode 1, we learned that switches connect devices within the same network using MAC addresses (Layer 2). But what happens when a device on one network wants to talk to a device on a different network?

  • Scenario: Johnny (on network 10.1.1.0/24) wants to order coffee from a web server at networkchuck.coffee (on network 23.227.38.0/24).
  • The Problem: A switch cannot route traffic between different IP networks. It only understands MAC addresses. If you connect two switches directly, devices on different IP subnets still cannot communicate because they are in different "neighborhoods" (IP address ranges).
  • The Solution: A router connects networks. It understands IP addresses (Layer 3) and knows how to forward packets between different networks.

How a Switch Works (Quick Refresher)

Before diving into routing, here's how a switch helps devices on the same network communicate:

  1. ARP (Address Resolution Protocol): When Johnny wants to ping Mark (10.1.1.2), he doesn't know Mark's MAC address.
  2. Broadcast Request: Johnny sends an ARP request to the broadcast MAC address (FFFFFFFFFFFF) asking "Who has IP 10.1.1.2?"
  3. Reply: Mark responds with his MAC address. The switch records this and forwards the reply back to Johnny.
  4. Communication: Now Johnny can send frames directly to Mark using his MAC address.

How a Router Routes Traffic (Layer 3 Magic)

When Johnny tries to reach the coffee server (23.227.38.65), something different happens:

  • Gateway Configuration: Johnny's computer is configured with a default gateway (10.1.1.1). A gateway is another term for a router.
  • He Knows It's Not Local: Johnny recognizes that 23.227.38.65 is not on his local network. He gives up trying to find its MAC address directly.
  • He Asks the Gateway: Instead, he sends an ARP request asking for the MAC address of 10.1.1.1 (the router).

Step-by-Step Packet Journey

  1. Johnny to Router (Layer 2): Johnny sends a frame with his MAC address as source and the router's MAC address as destination. The Layer 3 header shows Johnny's IP as source and the coffee server's IP as destination.
  2. Router Receives: The switch forwards the frame to the router.
  3. Router Needs the Server's MAC Address: The router checks its routing table (more on this below). It knows the coffee server is on its other interface, but it doesn't know the server's MAC address yet. It sends an ARP request on the coffee network.
  4. Server Responds: The coffee server replies with its MAC address. The router now has all the info it needs.
  5. Router Forwards (Layer 2 Rewrite): The router strips off the original Layer 2 header and creates a new one with its own MAC address as source and the server's MAC address as destination. The Layer 3 IP addresses remain unchanged.
  6. Server Replies: The coffee server sends a response back to Johnny. The router repeats the same process in reverse.

A Full Web Request (DNS + HTTP)

When Johnny types "networkchuck.coffee" into his web browser, a complete process unfolds:

  1. DNS Resolution: Johnny's computer doesn't know the IP address. It sends a query to the configured DNS server (10.1.1.50).
    • It first ARPs for the DNS server's MAC address.
    • It sends a DNS request asking for the IP address of networkchuck.coffee.
    • The DNS server replies with the IP: 23.227.38.65.
  2. HTTP Request: Now that Johnny has the IP address, he sends an HTTP GET request to the coffee server.
    • The router forwards this request to the coffee server (just like the ping example).
    • The coffee server processes the request and sends back the web page HTML.
    • The router forwards the response back to Johnny.
  3. Web Page Loads: Johnny's browser renders the page, and he can order coffee!

Key Point: The router remembers MAC addresses in its cache, so it doesn't have to ARP for every packet. This speeds up communication.

The Router's Map: The Routing Table

A router makes forwarding decisions based on its routing table. You can view it with the command:

show ip route

This command displays a map of all known networks and how to reach them. In the example:

  • 10.1.1.0/24 (Johnny's network) is directly connected to interface GigabitEthernet0/0.
  • 23.227.38.0/24 (Coffee server) is directly connected to interface GigabitEthernet0/1.
  • Default Route (0.0.0.0/0): For networks not in the table, the router uses a default route (often pointing to an ISP router).

On the real internet, routers have massive tables with thousands of routes, a concept rooted in CCNA Routing Fundamentals: Connected and Local Routes Explained. Using a command like show bgp ipv4 unicast reveals the enormous scale of the internet's routing infrastructure.

Key Takeaways

  • Routers connect different networks (Layer 3). Switches connect devices within the same network (Layer 2). For a deeper dive into switching, see CCNA Day 1: How Switches Work vs Hubs & Hands-On Packet Tracer Lab.
  • A device uses its default gateway to communicate with devices on remote networks.
  • ARP is used to find MAC addresses for local devices.
  • A router rewrites Layer 2 headers when forwarding packets between networks. The source/destination IP addresses remain unchanged.
  • DNS translates human-friendly domain names into IP addresses.
  • The routing table is the router's map for forwarding packets.

Try It Yourself!

Download the pre-configured Packet Tracer lab (link in the video description) to follow along and watch the packets flow in real-time simulation mode.

CCNA Course Sponsor & Giveaway

This free course is made possible by Boson Software. They create the best CCNA/CCNP labs and practice exams available. Enter the giveaway (link below) for a chance to win a copy of Boson NetSim!

Next Steps

In Episode 3, we'll build on this foundation and dive deeper into routing protocols and more advanced concepts. See you there!


Join the [Discord community] for help and discussion. Consider supporting free content like this by joining the "This is IT" membership (link below).

Foundational Knowledge

If you're new to networking, start with our Comprehensive Free CCNA Course Introduction: Networking Basics Explained to build your understanding from the ground up. For a broader view of network devices, check out Complete CCNA 200-301 Course: Network Devices & Fundamentals Explained. And to master IP addressing, dive into Mastering CIDR and Subnetting: Essential CCNA Network Skills.

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 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 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.

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.

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

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

Start your free CCNA course with a deep dive into how Ethernet switches work. Learn the key differences between smart switches and dumb hubs, visualize network traffic with Cisco Packet Tracer, and enter your first Cisco CLI command to view the MAC address table.

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