Preface
“It’s the network” is the most common sentence in every incident chat, and the most useless one. Behind it there is a missing route, a DNS server that only answers over TCP anymore, a certificate for the wrong name, a Service without endpoints, a NetworkPolicy that forgot DNS, or a segment in the data center that silently swallows large packets. Whoever knows which command rules out which layer in a minute is the person everyone waits for during incidents.
This course trains exactly that: troubleshooting the network, layer by layer, with measurement instead of guesswork. On a single VM, a small company network made of network namespaces takes shape: two sites, a router with NAT and DNS, a web server with HTTP and TLS, plus, from Day 11 on, Docker and a Kubernetes cluster with Cilium. Every day something breaks in it, deliberately and reproducibly, and you find it with the tools that are on every Linux server.
The book is aimed at software, DevOps and platform engineers who run services and no longer want to wait for “the network team” when network problems come up. You should know the shell, SSH and the basics of IP, ports and DNS; Kubernetes basics help from Day 12 on, but the book explains everything it uses.
Scope. Routing protocols (OSPF, BGP) and highly available gateways (VRRP) are covered in “Linux networking hands-on”. This course is about the everyday work in between: why can’t this service reach that one?
How the book works
- One day, one failure pattern. Each day has a goal, a time estimate, a short briefing and 3 to 5 drills. You type every command yourself and compare with “Expected”.
- Hypothesis → measurement → cause → proof of the fix. No fix counts before a measurement confirms it. Where a measurement showed something other than expected, the book says so, along with the cause.
- Every command is explained: what it does and what each option means. On its second occurrence, a reference is enough.
- No helper scripts. Every namespace, every cable and every rule is created command by command.
- Everything runs on
netz. The first line of every code block says# on netz. The namespace or pod in which a command acts is in the command itself:ip netns exec client …,kubectl exec werkzeug -- …. - Exercise, Challenge, Checkpoint close every day, plus an Interview note (how to answer the question in a job interview) and an Enterprise note (what of it matters in a company).
At the end:
- Competition (Day 16): five rounds and a double round along the whole path, against the clock.
- Appendix A rebuilds the training ground after a reboot of the VM. Appendix B is the troubleshooting catalog by symptom, with a cheat sheet. Appendix C is the final exam with ten tasks.
The days at a glance
| Day | Topic | Duration |
|---|---|---|
| Part A · From the link to the application | ||
| 0 | The training ground: namespaces, bridges, router, NAT | approx. 75 min |
| 1 | Is the link there? ip -br link, counters, ethtool |
approx. 60 min |
| 2 | Where does the packet go? ip route get, source address,
asymmetric return path |
approx. 75 min |
| 3 | Neighbors and Layer 2: ARP, switch table, duplicate IP | approx. 70 min |
| 4 | Reachable? Refused, timeout, no route, mtr | approx. 75 min |
| 5 | Who is listening? ss, addresses, states |
approx. 75 min |
| 6 | DNS: dig, your own DNS server, search domains | approx. 90 min |
| 7 | HTTP with curl: -v, timing, Host and SNI,
redirects |
approx. 90 min |
| 8 | TLS: reading certificates, your own CA, SNI, mTLS | approx. 100 min |
| 9 | Firewall and NAT: rules, counters, conntrack | approx. 90 min |
| 10 | Capturing: tcpdump at both ends, tshark | approx. 90 min |
| Part B · Containers and Kubernetes | ||
| 11 | Container networking: netns, DNAT, Docker’s firewall | approx. 90 min |
| 12 | Kubernetes Services: endpoints, Cilium without kube-proxy, readiness | approx. 100 min |
| 13 | CoreDNS and Pod DNS: ndots, log, kubectl debug, stub domains | approx. 90 min |
| 14 | NetworkPolicies with Cilium and Hubble | approx. 90 min |
| 15 | Overlay and MTU: VXLAN, MTU black hole | approx. 90 min |
| 16 | Competition: the broken network path | approx. 90 min |
Time: Days 0 to 15 add up to 22.5 hours (1350 minutes); the competition and the final exam add one and a half and two hours, for a total of a good 26 hours. With one training day per evening and five evenings per week, you are through in three and a half weeks.
The training ground
| VM | Role | IP in the book | In the lab |
|---|---|---|---|
netz |
Namespaces as sites, router and servers; Docker; kind cluster
ndbg with Cilium |
172.16.0.123 | 2 vCPU, 3.8 GiB, 58 GB |
- A VM with Ubuntu 24.04, SSH access and
sudo. The cluster with two nodes, Cilium and Hubble uses about 1.9 GB of memory; 4 GB is enough for the whole book. - Internet access for packages and images. Your lab’s network stays untouched: everything else happens inside the VM.
- Proxmox, VMware, a cloud or Multipass, it doesn’t matter. On a Mac with Apple Silicon, Multipass VMs are arm64; all downloads in the book pick the architecture themselves. The outputs in the book come from amd64.
Versions
| Tool | Version | Source |
|---|---|---|
| Kernel | 6.8 | Ubuntu 24.04 |
iproute2 (ip, ss,
bridge) |
6.1.0 | Ubuntu |
| dig / curl / openssl | 9.18.39 / 8.5.0 / 3.0.13 | Ubuntu |
| nftables / conntrack | 1.0.9 / 1.4.8 | Ubuntu |
| tcpdump / tshark | 4.99.4 / 4.2.2 | Ubuntu |
| dnsmasq / nginx | 2.91 / 1.24.0 | Ubuntu |
| Docker | 29.1 | Ubuntu (docker.io) |
| kind / Kubernetes | 0.33.0 / 1.37.0 | GitHub / kindest/node |
| Cilium / cilium CLI / Hubble CLI | 1.20.5 / 0.20.3 / 1.20.4 | Helm chart / GitHub |
What you can do afterwards
- For every “it doesn’t work”, name within a few minutes the layer where it’s stuck: link, route, neighbor, port, DNS, HTTP, TLS, firewall, container, Service, policy or MTU.
- Tell timeout, rejection and “No route to host” apart and know what each answer reveals about the path.
- Follow DNS problems from the name in the application to the
upstream, including in the pod with
ndots:5and stub domains. - Use
curl -wandopenssl s_clientto show whether a problem lies in the network, in the certificate or in the application. - Prove firewall rules with counters, read conntrack and understand Docker’s interventions in the firewall.
- Capture at both ends and recognize from a capture where a packet gets lost.
- Examine Kubernetes Services, CoreDNS, NetworkPolicies and Cilium’s
overlay with
kubectl,cilium-dbgand Hubble. - Find an MTU black hole and adapt the overlay to the underlay.
What was tested
All commands and outputs come from real runs on the training ground described here in November 2026, shortened where it makes sense. MAC addresses, process IDs, pod names, times and counters will differ on your side; the behavior should match. Appendix A was executed word for word after a real reboot of the VM.
Hint: This course is an independent practice course. Linux is a registered trademark of Linus Torvalds. Kubernetes is a trademark of the Linux Foundation, Cilium and Hubble are projects of the Cloud Native Computing Foundation, Docker is a trademark of Docker, Inc., Ubuntu a trademark of Canonical. The book is not affiliated with these organizations and projects and is neither reviewed nor endorsed by them.
The certificates and keys in the book (~/ndbg/pki) apply
to the lab only.
Enjoy the training camp.