下载fping
http://www.fping.org/dist/fping-5.0.tar.gz
安装fping
# tar zxf fping-5.0.tar.gz # cd fping-5.0/ # ./configure --prefix=/opt/fping # make # make install # vim /etc/profile.d/fping.sh PATH=$PATH:/opt/fping/sbin export PATH # source /etc/profile
ping某个网段
# fping -a -g 192.168.20.0/24 192.168.20.1 192.168.20.2 192.168.20.60 ……………………… ICMP Host Unreachable from 192.168.20.60 for ICMP Echo sent to 192.168.20.253