Interview Prep/Networking/Connectivity: refused, timed out, no route

`ssh: connect to host 10.1.4.20 port 22: No route to host`

BeginnerTroubleshootingConnectivity: refused, timed out, no route
Answer

Likely causes → Either the local kernel has no route, ARP for the target (or gateway) failed on the local subnet, or a router/firewall replied with ICMP host-unreachable. firewalld's default reject also returns icmp-host-prohibited, which shows up as "No route to host".

Diagnose →

ip route get 10.1.4.20
ip neigh show 10.1.4.20        # FAILED / INCOMPLETE means ARP gave no answer
sudo tcpdump -ni any icmp      # look for "host unreachable" or "admin prohibited"

Fix → Add the missing route, bring the target interface up, or open the port in firewalld (firewall-cmd --add-service=ssh --permanent && firewall-cmd --reload).

Prevent → Know which hosts run firewalld/ufw and manage those rules with config management.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route