My ping command (on Debian 6 or 7) will repeatedly attempt to ping a server even while the network is down, if the network was up when it was started. Is there some way to start ping while the network is down and get this same behavior?
Here's an example. If I start a repeating ping while the network is up, and while the ping is running, the network goes down, the ping continues to repeat.
I have 2 PCs running CentOS 7 and they're both connected to a wireless repeater/AP. I have statically set both the IP addresses of the 2 PCs, and they are able to ping each other via IP. I have also manually set the hostname of each pc, and each PC is also able to ping itself via hostname.
I have a Ubuntu machine that I want to ping by using its hostname.
I have set the hostname in /etc/hostname and rebooted.
Now, from a Window machine in the same network, I am able to ping the Ubuntu machine by just typing 'ping myHostname', so the hostname seems to be set correctly. However, from the Ubuntu machine itself, this does not work.