I just realized that pingon the Linux platform (Ubuntu 13.10) it does not have a timeout as described. I tried
ping
ping -w 2 unreachable.com
and
but in no case was there a timeout after 2 seconds. How to use pingwith a specific timeout? Is this even possible? I want the team to stop after 2 seconds, regardless of the connection status.
ping -c 5 -W 2 will send 5 pins, waiting for a maximum of 2 seconds for each of them (maximum 10 seconds).
ping -c 5 -W 2
ping -w 5 will send pings, but will stop after 5 seconds.
ping -w 5
: IP-, ββ ( ), DNS, - DNS /etc/resolv.conf - . .
/etc/resolv.conf
? :
-W , . -W 2, man-:
. , ping RTT
, , , 2 , , .