Chapter 8

Troubleshooting Connectivity

ping, mtr, firewall vs routing vs DNS.

Learning objectives

  • Follow a layered troubleshooting checklist
  • Distinguish DNS, routing, firewall, and physical issues
  • Use ping, mtr, and arp effectively

Layered checklist

When “the network is down,” start at the bottom — physical — and move up. Skipping layers wastes hours blaming DNS when a cable was unplugged.

  1. Physical — link lights, Wi‑Fi associated, correct VLAN port
  2. IP config — address, mask, gateway, DNS on device
  3. Local gateway — ping 192.168.10.1
  4. DNS — resolve www.workshopco.ca
  5. Remote host — ping/traceroute to 203.0.113.10
  6. Application — HTTPS port 443, web server up (Book 2)

Symptom matrix

SymptomLikely layerNext step
Cannot ping gatewayLocal L2/L3Check cable, VLAN, IP conflict
Gateway OK, DNS failsDNSdig @192.168.10.1 workshopco.ca
DNS OK, HTTPS failsApp / firewallcurl -v https://..., check outbound 443
Intermittent dropsWi‑Fi / duplexmtr over 50 cycles, check AP placement

Worked example — POS cannot reach payment API

Shop tablet pings gateway OK. DNS resolves. HTTPS to payment provider times out. Traceroute dies at ISP hop 3. Conclusion: not Workshop Co. LAN — open ticket with ISP. Meanwhile, enable offline payment mode per vendor docs.

If traceroute reaches the provider but TCP 443 fails, check firewall outbound rules on VLAN 20 — did someone block non-HTTP ports?

Ping is not everything

Some hosts block ICMP echo. Absence of ping does not prove the host is down. Test the actual service port (443, 22) with curl or nc.

Try it yourself — triage script

Write five commands (with expected success output) you would run from an office Mac when “workshopco.ca won’t load.”

Answer
ping -c 3 192.168.10.1
dig www.workshopco.ca +short
ping -c 3 203.0.113.10
curl -I https://www.workshopco.ca
traceroute 203.0.113.10

Interpret where the chain breaks.

IP conflict scenario

Printer and laptop both claim 192.168.10.40. Describe two symptoms staff might report and how to find the duplicate.

Answer

Symptoms: print jobs fail randomly; laptop drops off Wi‑Fi. Check router DHCP log, ping .40 and compare ARP MAC addresses, verify reservation matches printer MAC only.

Quick quiz

  1. What does a successful gateway ping prove?
  2. DNS works but site fails — name two non-DNS causes.
  3. Why use mtr instead of one ping?
Answers
  1. Local IP config and L2 path to router are likely OK — not end-to-end internet.
  2. Web server down, TLS misconfig, firewall blocking 443, wrong IP in DNS.
  3. Continuous stats per hop — spot packet loss/latency patterns over time.