Inside the Routing Table
Read the entries a router uses to choose the next hop.
How Routers Decide
A router job is to forward each packet toward its destination. To do this it consults a routing table, a list of known networks and how to reach them. Every packet that arrives is checked against this table to choose the next step. This lesson opens the routing table and explains the entries a router uses to make forwarding decisions.
What an Entry Contains
Each routing table entry maps a destination network to a next hop and an outgoing interface. The destination is written as a network and prefix, like 10.0.0.0/8. The next hop is the address of the next router on the path, and the interface is the port to send through. Some entries also list a metric and the route source.
Destination Next Hop Interface Metric
0.0.0.0/0 203.0.113.1 eth0 1
192.168.1.0/24 connected eth1 0
10.0.0.0/8 10.1.1.2 eth2 20All lessons in this course
- The Default Gateway's Job
- Inside the Routing Table
- Static vs Dynamic Routing
- Meeting RIP, OSPF, and BGP