Networking, DNS & TLS
Routing tables
Explain how a routing table picks the longest matching prefix, what route types and proto fields show, and how to ask the kernel which route a destination uses.
What you will be able to do
- Explain why a /24 route wins over a /16 route for the same destination.
- Decide how to confirm the route the kernel uses before and after a change.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- IPv4 subnettingIntermediate · 4 min
Explain how a prefix length splits an IPv4 address into network and host parts, and how a host uses its mask to decide whether a destination is local or behind the…
- IPv6 addressingIntermediate · 4 min
Explain how IPv6 addresses are written in full and compressed form, what the three address types are, and why a copied address must be checked against the interface.
- Policy routingIntermediate · 4 min
Explain how policy rules run in priority order and select a routing table by source address or fwmark, so a host with two uplinks sends replies out the right link.
- NAT and PATIntermediate · 4 min
Explain how NAT and PAT rewrite addresses and ports through a binding table, why inbound access needs a static mapping, and why idle bindings can expire while the link…
- Conntrack table exhaustionIntermediate · 4 min
Explain how the conntrack table tracks each flow, why its timeouts decide how many entries stay, and how to tell a full table from a CPU or memory limit.
- TCP three way handshakeIntermediate · 4 min
Explain the TCP three-way handshake and what each SYN, SYN-ACK and ACK packet carries, and how a one-second pause before a connection can point to a lost SYN.