Menu
Coddy logo textTech

Routing Tables

Lesson 17 of 35 in Coddy's LAN Labs course.

Every device that speaks IP keeps a routing table: for each destination range, how to get there. netlab show routes NODE prints it.

A host's table is tiny: its own network is connected (deliver directly), and 0.0.0.0/0, the default route matching everything else, points at the gateway. A router's table lists one connected entry per interface, which is exactly how it knows it can forward between those networks.

When a ping fails, this table is the first thing a network engineer reads.

challenge icon

Challenge

Beginner

Show the routing table of pc1, then of r1.

Expected output:

DESTINATION     VIA          IFACE
192.168.1.0/24  connected    eth0
0.0.0.0/0       192.168.1.1  eth0
DESTINATION     VIA        IFACE
192.168.1.0/24  connected  eth0
10.0.0.0/24     connected  eth1

Try it yourself

Terminal

All lessons in LAN Labs

Practice on your own: Terminal playground