Network Connectivity
Cheat sheet · https://pcornel.dk/topic.php?topic=2919
Answer
Network connectivity problems are failures to reach another host or service: link, address, route, gateway, firewall, DNS or the remote service.
Remember
Work up the layers: link → address → gateway → route → remote IP → port → name. Test the port, not just ping — ICMP may be blocked while the service works.
First checks
journalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
Commands
ip route getip route showip -br linkip -br addrip neigh show 10.0.10.1ip route get <dst>getent hosts app01curl -v https://app01ip rule add from 10.0.20.21 table 20tcpdump
Verify in this order
link → address → route/gateway → remote host → port open → service
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2919