sailboat> ping www.analogic.com
PING www.analogic.com (204.178.41.218): 56 data bytes
64 bytes from 204.178.41.218: icmp_seq=0 ttl=244 time=590.3 ms
64 bytes from 204.178.41.218: icmp_seq=1 ttl=244 time=34.3 ms
--- www.analogic.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 34.3/312.3/590.3 ms
sailboat> telnet www.analogic.com 80
Trying 204.178.41.218...
telnet: Unable to connect to remote host: No route to host
I am assuming that there must be a route to the host in order for
ping to work.
Here is the output of strace:
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
getuid() = 502
setuid(502) = 0
connect(4, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("204.178.
41.218")}, 16) = -1 EHOSTUNREACH (No route to host)
and the output of route:
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
localnet * 255.255.0.0 U 1500 0 19891 eth0
loopback * 255.0.0.0 U 3584 0 541 lo
default uncw-gw.gate.un * UG 1500 0 25797 eth0