Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Networking Basics Level Two · Lesson 4 of 7

Module Three

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
4
Level 2 · Module 3 · Routing Fundamentals · 13‑year‑old edition

Module 3: Routing Fundamentals

age 13+ Level 2 🗺️ finding the best path across networks

In Module 2 you learned how VLANs split one network. But how do packets travel from one network to another? That's the job of a router. Think of it as the GPS of the internet — it looks at the map, picks the best road, and sends your data on its way. 🚗💨

1. What is routing?

Routing is the process of choosing the best path for a packet to travel from its source network to its destination network. A router does this by checking its routing table — a list of "to reach network X, go through gateway Y." It's like a delivery driver planning their route. 🚚

Analogy: road signs

When you drive somewhere new, signs point you to the right highway. A router's routing table is just a list of those signs for data. 🪧

Analogy: GPS

Your GPS picks the fastest route. A router does the same — it picks the best path based on rules, distance, or speed. 📍

Analogy: post office

You drop a letter in your local postbox. It hops through sorting offices until it reaches the right address. Routers are the sorting offices for packets. 📮

2. Inside the routing table

A router's routing table tells it where to send packets. Each row has a destination network, a next hop (where to send it), and a type (how the route was learned). Here's a sample:

Example routing table

Destination network Next hop Type
192.168.1.0/24 — (directly connected) connected
192.168.2.0/24 192.168.1.2 static
10.0.0.0/8 192.168.1.3 static
0.0.0.0/0 192.168.1.1 default route

The 0.0.0.0/0 route is the default route — the "catch-all" for anything the router doesn't recognise. It's usually your internet gateway. 🌍

3. Static vs dynamic routing

Static routing

you set it by hand
  • A human types in every route manually.
  • Simple, secure, and uses zero extra bandwidth.
  • But if the network changes, someone has to update it — not scalable for big networks.
  • Great for small networks like your home or a tiny office. 🏠

Dynamic routing

the routers talk
  • Routers share routes automatically using a routing protocol.
  • If a link breaks, they find a new path on their own — self-healing!
  • Uses a bit of bandwidth to share updates, and is more complex.
  • Perfect for large networks like the internet or a school district. 🏫
Fun fact: The internet you use every day relies on dynamic routing — millions of routers constantly sharing updates so packets can find a path around broken links. No human updates them all! 🤯
4. Meet two routing protocols: RIP & OSPF

Routing protocols are the "rules" routers use to share routes with each other. The two big ones you'll see in Level Two are RIP and OSPF.

🐢

RIP distance-vector

The old, simple protocol. It counts hops (how many routers a packet passes through) and picks the path with the fewest. Max 15 hops — so it only works for small networks. Slow to update, but easy to understand. 🐢

🐇

OSPF link-state

The modern, smart protocol. Every router builds a map of the whole network and uses it to find the fastest path (based on speed/cost, not just hops). Scales to huge networks, updates quickly. 🐇

🌍

Default route 0.0.0.0/0

Not really a protocol — just a catch-all route. "If you don't know where to send a packet, send it here." Usually points to your internet gateway. 🚪

⚖️

Administrative distance AD

A trust score (0–255) that tells a router which route to prefer when there are multiple. Lower = more trusted. Connected routes (AD 0) beat static (AD 1), which beats OSPF (AD 110), which beats RIP (AD 120). 📊

5. How a packet travels (hop by hop)

A packet's journey

Every time a packet passes through a router, that's called a hop. The router checks the destination IP, looks up the best route, and forwards it to the next hop. Repeat until it arrives! 🏁

Your PC
192.168.1.10
Router 1
home gateway
Router 2
ISP
Router 3
backbone
Web server
142.250.80.46

You can actually see each hop with traceroute (or tracert on Windows). It lists every router along the way! 🕵️

6. The default gateway — your network's front door

When your device wants to send data to a different network, it doesn't know the way. So it hands the packet to its default gateway — usually your router. The router then figures out the rest of the journey. 🚪➡️🌍

On your device, you can see it with ipconfig (Windows) or ifconfig (Mac/Linux) — look for "Default Gateway." It's usually something like 192.168.1.1. 🏠

7. Peek at the config (what it looks like)
Example static route (Cisco-style)
Router> enable
Router# configure terminal
! Send all traffic for 192.168.2.0/24 to next-hop 192.168.1.2
Router(config)# ip route 192.168.2.0 255.255.255.0 192.168.1.2
! The default route: send everything unknown to the ISP
Router(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1
! View the routing table
Router(config)# end
Router# show ip route

This just says: "To reach 192.168.2.0/24, go through 192.168.1.2." Simple! You'll try this in Packet Tracer. 🖥️

Hands‑on lab: in Packet Tracer, build two networks connected by a router. Add static routes on each router so PCs on opposite sides can ping each other. Then try tracert to see the path! 🧪
LAB TIME

You just learned: what routing is, how routing tables work, static vs dynamic routing, RIP vs OSPF, hop-by-hop packet travel, the default gateway, and how to add a static route.

🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

🎓 Sign Up to Get Certified
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
→