ping linux
- -b allow ping a broadcast address
windows and linux 默认都不会对广播ping做回应,可用 echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts来使Linux对其响应 - -i interval
1) default 1 second 2) flood mode: not to wait
- mdev : mean deviation icmp包之rtt偏离平均值程度,越大意味着网络越不稳定
- -I : 指定网卡或IP
- -w 总的超时时间
- -W time to wait for a response,The option affects only timeout in absence of any response,otherwise ping waits for two RTTs
默认情况下,没有返回时,ping 等待了10s
加入-W参数,使ping最多等待2s