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
- longest prefix match — The rule that when several routes match a destination, the one with the longest prefix, the most specific, wins.
- default route — The route used for any destination that no more specific route matches, written 0.0.0.0/0 or shown as default.
- next hop — The neighbouring router or gateway a packet is handed to on its way to its destination.
- default gateway — The router a host sends packets to when the destination is outside its own subnet and no more specific route exists.
- router — A device or service that decides where network traffic is sent.
- order of volatility — Collecting evidence starting with what disappears fastest: memory and network state before disk, disk before archives.
- ARP — Address Resolution Protocol: how a machine on a local network finds the hardware (MAC) address that belongs to an IP address.
Taught in
- IP Addresses, Netmasks And Subnets — Linux Fundamentals & Systems Administration
- Interfaces, Routes And The Default Gateway — Linux Fundamentals & Systems Administration
- The Diagnostic Ladder: Is It Up, Is It Named, Is It Routed — Linux Fundamentals & Systems Administration
- Forensics Principles, Custody & Imaging — Security Operations & Threat Hunting (SOC)