fping is a ping like program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a host is up.
With fping we can ping multiple hosts at a time. Use following command to ping multiple hosts:
$ fping -f IPsFiles.txt
where in IPsFiles.txt I have multiple hots.
Below are some other examples of fping:
To ping a host/IP:
$ fping 192.168.2.2
192.168.2.2 is alive
$ fping 192.168.2.22
192.168.1.22 is unreachable
To ping range of IP’s:
$ fping -g 192.168.2.0/24
To list only unreachable hosts/IP’s
$ fping -q -u -f IPsFiles.txt
where -q is for Quiet mode and -u is to list only unreachable targets.
To list only reachable hots/IP’s
$ fping -q -a -f IPsFiles.txt
where -a is to list only alive hots.