Fix
Ping says Destination Host Unreachable on the local network
Your own machine sent ARP requests for that address and nobody answered: the host is off, has another address, or has ARP switched off.
Likely causes
- The host is down, or has another address than the one you use.
- ARP is off on the host's card (
NOARP), or your machine has a wrong static ARP entry. - If ARP answers but ping does not, the host is up and only ICMP is blocked.
Diagnose
Run these in order. The output is what each printed on a lab's real Linux machines.
-
mia:~# ping -c 1 10.0.1.200 - The error comes
From 10.0.1.11, your own address: no router was involved.PING 10.0.1.200 (10.0.1.200) 56(84) bytes of data. From 10.0.1.11 icmp_seq=1 Destination Host Unreachable --- 10.0.1.200 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
-
mia:~# ip neigh show - The neighbour table says
FAILED: ARP asked and got no answer.10.0.1.12 dev eth0 lladdr 5e:55:7b:55:7b:bc STALE 10.0.1.200 dev eth0 FAILED 10.0.1.2 dev eth0 lladdr 82:ec:a6:36:e8:24 REACHABLE
-
mia:~# arping -c 2 -I eth0 10.0.1.12 - arping asks by ARP, below any IP firewall: replies mean the host is there.
ARPING 10.0.1.12 from 10.0.1.11 eth0 Unicast reply from 10.0.1.12 [5E:55:7B:55:7B:BC] 0.553ms Unicast reply from 10.0.1.12 [5E:55:7B:55:7B:BC] 0.584ms Sent 2 probes (1 broadcast(s)) Received 2 response(s)
Fix
-
ip neigh del 10.0.1.12 dev eth0 - On a machine with a wrong
PERMANENTneighbour entry: delete it, and ARP asks afresh.
Break it and fix it yourself
Each lab is a small network of real Linux machines in your browser, where this fault happens.
- MAC and ARP: how an IP address finds a card : its challenge "Mia can't reach Noah" set the fault for you to find and fix.