Get AI summaries of any video or article — Sign up free
What is a ROUTER? // FREE CCNA // EP 2 thumbnail

What is a ROUTER? // FREE CCNA // EP 2

NetworkChuck·
5 min read

Based on NetworkChuck's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Switches forward frames within the same IP subnet using MAC addresses, so they can’t connect different IP networks by themselves.

Briefing

Routers are the missing link that lets devices on one IP network reach devices on another network—switches can only move traffic within the same IP subnet. In the lab setup, “Johnny” can successfully ping “Mark” because both sit in the same address range (10.1.1.0/24). But when Johnny tries to reach the coffee server on a different subnet (23.227.38.0/24), the switch can’t help; no amount of layer-2 forwarding will bridge different IP networks.

The episode walks through what happens at the frame level to make that distinction concrete. On the local network, Johnny pings Mark’s IP (10.1.1.2). Because the switch understands only layer 2 (MAC addresses), Johnny first uses ARP (Address Resolution Protocol) to discover Mark’s MAC address. The ARP request is broadcast (destination MAC ffffffff), the device with the matching IP responds, and the switch learns where to send the subsequent ping frame—now the destination MAC is Mark’s, and delivery works.

When Johnny pings the coffee server (23.227.38.65), the behavior changes immediately. Johnny still sends an ARP broadcast, but he does not try to resolve the coffee server’s MAC address directly. Instead, he targets the gateway IP (10.1.1.1), because his configuration tells him that 10.1.1.0–10.1.1.255 is “local,” while 23.227.38.0/24 is “remote.” With no host on the local subnet answering for 23.227.38.65, Johnny relies on the router as the next hop.

Once the router is back in the path, the process becomes a two-step handoff between layer 2 and layer 3. Johnny sends a frame to the router’s MAC address, carrying an IP packet whose destination is the coffee server’s IP. The router receives the frame on its interface, then consults its layer-3 routing logic to determine where the packet should go next. To forward the packet, the router must again resolve the next-hop MAC address on the outbound network—using ARP to find the coffee server’s MAC on the 23.227.38.0/24 side. After that, the switch can deliver the frame to the coffee server, and the reply follows the same logic back through the router.

The episode then connects this to real web browsing. Typing networkchuck.coffee requires DNS, not just pinging an IP. Johnny queries a DNS server (configured at 10.1.1.50), learns the web server’s IP address, and only then sends the HTTP GET request toward that IP. The router’s job remains consistent: connect separate IP networks using its “map” of routes.

Finally, the episode previews why routing scales: a router’s routing table and protocols (demonstrated via show bgp) can contain routes to many networks across the internet. The takeaway is straightforward but foundational for CCNA: switches move frames inside a subnet; routers move packets between subnets using IP routing, gateway configuration, ARP for next-hop MACs, and supporting services like DNS for name-to-IP resolution.

Cornell Notes

Routers connect different IP networks, while switches mainly forward within a single IP subnet using MAC addresses. On the same network, a host uses ARP to map an IP (like 10.1.1.2) to a MAC address so the switch can deliver frames. When the destination is outside the local subnet, the host sends traffic to its configured gateway (default gateway, here 10.1.1.1) instead of trying to resolve the remote host’s MAC directly. The router then forwards the packet by resolving the next-hop MAC on the destination network. For web access, DNS translates names like networkchuck.coffee into an IP address before HTTP traffic is sent through the router.

Why does pinging Mark work without a router, but pinging the coffee server doesn’t?

Mark and Johnny share the same IP network (10.1.1.0/24). That means Johnny can resolve Mark’s MAC via ARP and send frames directly through the switch. The coffee server sits on a different IP network (23.227.38.0/24), so the switch can’t bridge the subnet boundary; Johnny must send the packet to the default gateway (router) instead.

What role does ARP play on the local network?

ARP lets a host discover the MAC address associated with a target IP. When Johnny pings Mark (10.1.1.2), Johnny broadcasts an ARP request (destination MAC ffffffff) asking “who has 10.1.1.2?” Mark responds with its MAC, and the switch can then forward the subsequent ping frames using layer-2 addressing.

What changes when Johnny tries to reach an IP outside his subnet?

Johnny stops trying to resolve the remote host’s MAC at layer 2. Instead, he ARPs for the gateway IP (10.1.1.1). The gateway is the router interface on the local network, so the switch can deliver the frame to the router, and the router can handle the layer-3 forwarding to the remote subnet.

How does a router forward traffic between networks when it receives a frame?

The router receives a layer-2 frame addressed to its own MAC, containing a layer-3 packet whose destination IP is the remote host (e.g., networkchuck.coffee’s server IP). The router consults its routing “map” to choose the outbound interface, then uses ARP on the destination network to learn the next-hop MAC (or the server’s MAC). After that, it sends the frame out so the destination host can reply.

Why does visiting networkchuck.coffee require DNS before HTTP?

A friendly name like networkchuck.coffee isn’t directly routable like an IP address. Johnny queries a DNS server (configured at 10.1.1.50) to learn the IP address for networkchuck.coffee. Only after DNS returns the IP does Johnny send the HTTP GET request toward that IP, which then gets routed between subnets.

What does show ip route / show bgp illustrate about routing at scale?

Routers maintain a routing table mapping destination networks to next hops and interfaces. The lab shows show ip route for directly connected networks (like 10.1.1.0/24 and 23.227.38.0/24). It also demonstrates show bgp, hinting at how large, multi-network routing on the internet relies on routing protocols and many learned routes.

Review Questions

  1. In the lab, what IP range determines whether a destination is treated as “local” versus “remote,” and how does that affect ARP behavior?
  2. Trace the addressing steps (layer 2 and layer 3) for Johnny reaching the coffee server: which MAC addresses are used at each hop?
  3. Why must DNS resolve networkchuck.coffee to an IP address before the router can forward the web request?

Key Points

  1. 1

    Switches forward frames within the same IP subnet using MAC addresses, so they can’t connect different IP networks by themselves.

  2. 2

    Hosts use ARP to map a local destination IP to a MAC address; ARP requests are broadcast to ffffffff.

  3. 3

    When the destination IP is outside the local subnet, the host sends traffic to the default gateway (router) instead of resolving the remote host’s MAC directly.

  4. 4

    Routers operate at layer 3: they read the destination IP, consult their routing table, and then resolve the next-hop MAC on the outbound network.

  5. 5

    Web browsing requires DNS to convert names like networkchuck.coffee into IP addresses before HTTP traffic is sent.

  6. 6

    A router’s routing table (and protocols like BGP) is what enables connectivity across many networks on the internet.

Highlights

On the same subnet, ARP makes ping work: Johnny broadcasts for Mark’s IP (10.1.1.2), gets Mark’s MAC, then the switch forwards the frame.
For the coffee server on a different subnet, Johnny ARPs for the gateway (10.1.1.1) rather than trying to find the coffee server’s MAC directly.
The router performs a two-part job: accept a frame addressed to its MAC, then forward the IP packet by resolving the next-hop MAC on the destination network.
Typing networkchuck.coffee triggers DNS first (to 10.1.1.50), then HTTP—routing still happens based on IP, not the name.

Topics

  • Routers vs Switches
  • ARP and Broadcast
  • Default Gateway
  • DNS Name Resolution
  • Layer 2 vs Layer 3

Mentioned