routing table

The kernel's list of destination prefixes and where to send packets for each: out of which interface and through which next hop.

In more detail

For every packet the kernel picks the most specific matching route; if nothing more specific matches, the default route is used. ip route shows the table and ip route get 198.51.100.9 shows the exact choice for one destination. A missing route means packets never leave in the right direction.

Examples

local=192.0.2.0/24 via=eth0 def=192.0.2.1 shows a connected route and a default route.
It is volatile evidence: an attacker may add routes to redirect traffic, and the table is lost at shutdown.

Related terms

Taught in

References