The default gateway
Your default gateway is the router that connects your local subnet to everything else. Any packet whose destination isn't in your local subnet gets handed to the gateway, which forwards it onward. On a typical home network, that's 192.168.1.1 or 192.168.0.1, set automatically by DHCP.
The route table
Every device has a routing table — a small set of rules answering "for this destination, which interface and gateway?" The two rules that matter most:
- Local subnet — "For 192.168.1.0/24, send out en0 directly to the device" (no gateway needed; ARP finds the MAC).
- Default route — "For anything else, send to the gateway and let it figure it out."
Traceroute — every hop, exposed
traceroute reveals the chain of routers between you and a destination. It's the diagnostic tool when "the internet feels slow" or "this site is down for me but not for everyone."
Each line of output is one hop. Asterisks (* * *) mean a router didn't reply to probes — usually because it's configured to silently drop ICMP rate-limited probes, not because there's a problem. Real packet loss shows as missing replies on multiple hops in a row.
mtr is traceroute's better cousin: live-updating, with cumulative loss/latency stats per hop. Reach for it whenever you're diagnosing path issues to a specific destination.