Pcornel
Linux · Linux Troubleshooting

Network Connectivity

Cheat sheet · https://pcornel.dk/topic.php?topic=2919

Back to the Topic

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 boot
  • systemctl --failed — failed units
  • df -h; df -i — space and inodes
  • ss -tulpn — listening sockets
  • dmesg -T | tail — recent kernel messages

Commands

ip route get
ip route show
ip -br link
ip -br addr
ip neigh show 10.0.10.1
ip route get <dst>
getent hosts app01
curl -v https://app01
ip rule add from 10.0.20.21 table 20
tcpdump

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

Confirmation

Confirm action

Continue?