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
BeginnerShow 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 eth1Try it yourself
All lessons in LAN Labs
4Routers and Gateways
Two NetworksThe Default GatewayBoth Sides Need a Way BackRouting TablesRecap - Connect the Floors2Addresses on the LAN
Giving a Host an AddressThe First PingWhat ARP LearnedThe Switch Learns TooRecap - First Conversation8Capstone - Fix the Branch
Survey the DamageFix the Address ClashMasks and GatewaysRecap - Prove It WorksPractice on your own: Terminal playground