Getting "no route to host"in Mac OS X 10.5.8
I'm guessing it's not related to ICMP being blocked. If that was the case, the response would simply timeout, not result in a "no route to host" message. "No route to host" means exactly that: when the destination of the ICMP message is not on the local subnet, it will be forwarded to the machine's default gateway for it to handle. If there is no default gateway, or the gateway has no information in its routing table to forward the packets, you'll see "no route to host."
Both your ping and traceroute commands are resolving the domain name to an IP address (albeit different addresses), so it appears that the DNS resolution is probably working okay. So I'd double check that your default gateways are the same/properly configured on the iMac first.
Also, from what I've seen, OS X seems to favor WiFi to a wired connection when both are connected. Check that you only have one connected (if you happen to be using both) and see if it works.
Comments
-
jairo over 1 year
I have an issue with one of my computer on my network. It is an iMac running OS X 10.5.8.
The issue is accessing certain websites. For instance, one of these websites is that the computer is unable to connect to is farmville.com.
When I ping farmville.com it returns "no route to host":
$ ping farmville.com PING farmville.com (50.16.253.102): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host
When I traceroute farmville:
$ traceroute farmville.com traceroute: Warning: farmville.com has multiple addresses; using 50.16.253.109 traceroute to farmville.com (50.16.253.109), 64 hops max, 40 byte packets traceroute: sendto: No route to host 1 traceroute: wrote farmville.com 40 chars, ret=-1
tracerouting the farmville ip address: 50.16.253.109
$ traceroute 50.16.253.109 traceroute to farmville.com (50.16.253.109), 64 hops max, 40 byte packets traceroute: sendto: No route to host 1 traceroute: wrote farmville.com 40 chars, ret=-1
Now the interesting part is that I on another computer (running Ubuntu 10.10) I have no issues at all accessing this website. Which tells me that it's not the internet connection. I've also disabled the firewall on the router to no avail.
The /etc/hosts file in the mac is the following. The /private/etc/hosts file is empty:
## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost #255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost
Any help is appreciated.
Many thanks
-
Asmus about 13 yearsCan the iMac and the Ubuntu computer ping and traceroute each other or is the iMac just completely refusing it all?
-
Gordon Davisson about 13 yearsIs there something weird in the Mac's routing table?
netstat -rn -finet
androute -n get 50.16.253.109
may be informative...
-
-
jairo about 13 yearsI'm not familiar with ICMP, but seems doubtful since I am able to connect through other computers on the same network.
-
creidhne almost 8 years@jairo The
ping
utility uses the ICMP protocol to get an echo response from a host or gateway. Seeman ping
andman icmp
.