Course contents

Routing

How routers move packets between networks: reading the routing table, choosing between routes, building static and default routes by hand, and letting OSPF and BGP do the work.

Intermediate · 16 lessons

Technical definition

Routing is the process a router uses to forward a packet toward a destination on another network. It compares the destination IP address with the routes in its routing table, which can be connected, static or learned from a dynamic routing protocol, and sends the packet to the next hop of the best match.

Routing is how a packet gets from one network to another, possibly through many routers. Every router on the way makes its own decision: for this destination, where does the packet go next? This course explains that decision and every way a router can learn its routes, using the same three-router network in every lesson.

Diagram
The course network: three routers, three LANs, one ISP
The course network: three routers, three LANs, one ISP
192.168.1.0/24203.0.113.0/3010.0.12.0/3010.0.23.0/30192.168.2.0/24192.168.3.0/24PC1IP 192.168.1.10ISPIP 203.0.113.1R1R2R3PC2IP 192.168.2.10ServerIP 192.168.3.10

Device key: PC1, PC2 (computer) · ISP (network / service) · R1, R2, R3 (router)

Lines show the example’s network connections. Thick links: uplinks/WAN, as labelled. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type.

Reading the addresses

IP labels identify interfaces or destinations. Subnet labels identify networks; /n is the prefix length. A router ID (RID) identifies a routing process and need not be a reachable interface.

An IP address alone is not a URL. A web URL includes a scheme such as https://; an address on a router or printer does not imply a website.

  • PC1: IP 192.168.1.10
  • ISP: IP 203.0.113.1
  • PC2: IP 192.168.2.10
  • Server: IP 192.168.3.10
  1. 1. Between LANs: PC1's packet crosses R1, R2 and R3. Each router picks the next hop from its own routing table.
  2. 2. To the internet: anything the routers don't know follows default routes toward the ISP.

Before you start

CCNA students and anyone who wants to understand how traffic moves between networks. You should be comfortable with IP addresses and subnet masks first. If /24 and /30 mean something to you, you're ready.

What's in this course

5 modules · 16 lessons · about 3 hours of reading

Module 1: Routing Basics

What a router does with every packet, and how to read the table it uses to decide.

Module 2: Static Routing

Telling a router about networks by hand: static, default and backup routes.

Module 3: IPv6 Static Routing

The same static, default and floating routes for IPv6, then a lab and a test on IPv6 addressing and routing.

Module 4: Dynamic Routing

Letting routers learn routes from each other, and where OSPF and BGP fit.

Module 5: Verify and Troubleshoot

Following a packet's path and finding where routing breaks.

Start the first lesson →

FAQ

What's the difference between a default gateway and a next hop?
A default gateway is a setting on an end device: the router it sends traffic to when the destination isn't on its own subnet. A next hop is the general routing idea: the very next device a packet is handed to on its way. Every route in a router's table has a next hop; a PC's default gateway is just the first one.
Why not just use static routes everywhere? They sound simpler.
Static routes are fine for small, stable networks: a few routers and links that rarely change. They stop scaling once there are many routers or the topology changes often, because every change means editing every affected router by hand, and they can't react to failures further away. Dynamic routing protocols solve that by letting routers share routes and adjust on their own.
Do I need to understand OSPF and BGP in depth?
For the CCNA you need to configure and verify single-area OSPF, which a separate OSPF course covers in full. BGP is mostly for ISPs and large organisations; knowing what it is for and how it differs from OSPF (OSPF inside one organisation, BGP between organisations) is enough for most jobs.