Show the routing table

Read-only
What do risk levels mean?
Read-only
Inspects state without changing anything.
Low risk
Reversible with a routine follow-up command.
Medium risk
Changes state; undo path documented.
Destructive
Deletes or overwrites; confirmation required.

Displays the kernel routing table, including the default gateway, useful for diagnosing why traffic to a network takes an unexpected path or fails.

networkroutinggatewayinspect

Commands

Show all routes with gateways and interfaces

netstat -rn

Verification

netstat -rn

A default route pointing at your gateway is listed; its absence explains missing internet connectivity.

Undo

Not undoable

This recipe only reads routing state and changes nothing.

Pitfalls

  • VPN clients often insert routes that override the default gateway; look for more specific prefixes shadowing the default route.
  • Two default routes with different metrics can cause intermittent behavior when interfaces switch.

Related