ping linux

  

  1. -b allow ping a broadcast address
    windows and linux 默认都不会对广播ping做回应,可用 echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts来使Linux对其响应

     

     

     

     

  2. -i  interval
    1) default 1 second
    2) flood mode: not to wait

     

  3. mdev : mean deviation    icmp包之rtt偏离平均值程度,越大意味着网络越不稳定

  4. -I : 指定网卡或IP

  5. -w  总的超时时间

  6. -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

posted @ 2020-07-17 21:19  ascertain  阅读(122)  评论(0编辑  收藏  举报