1.获取源码包(http://fping.org/)
使用wget直接下载 http://fping.org/dist/fping-3.10.tar.gz
[root@localhost ~]# wget http://fping.org/dist/fping-3.10.tar.gz
解压
[root@localhost ~]# tar -zxvf fping-3.10.tar.gz
编译
[root@localhost ~]# cd fping-3.10 [root@localhost fping-3.10]# ls aclocal.m4 compile config.h.in configure COPYING doc install-sh Makefile.in README ChangeLog config.guess config.sub configure.ac depcomp INSTALL Makefile.am missing src [root@localhost fping-3.10]# ./configure
[root@localhost fping-3.10]# make [root@localhost fping-3.10]# make install常用参数介绍
-a 只显示出存活的主机(相反参数-u)
1、通过标准的输入方式 fping +IP1 + IP2
-g 支持主机段的方式 192.168.1.1 192.168.1.255 或者192.168.1.0/24
2、通过读取一个文件中IP内容
fpIng -f filename