fping is a small command line tool to send ICMP (Internet Control Message Protocol) echo request to network hosts, similar to ping, but much higher performing when pinging multiple hosts. fping totally differs from ping in that you can define any number of hosts on the command line or specify a file with the list of IP addresses or hosts to ping.
- Limit the IP scan to just IPv4 or IPv6 addresses.
- Display targets by DNS name.
- Set the Time To Live.
- Specify only active hosts.
How to Install Fping in Linux Systems
In most Linux distributions, the package fping is available to install from the default package repositories using package management tool as shown.
# sudo apt install fping [On Debian/Ubuntu] # sudo yum install fping [On CentOS/RHEL] # sudo dnf install fping [On Fedora 22+] # sudo pacman -S fping [On Arch Linux]
Alternatively, you can install latest version of fping (4.0) from the source package using following commands.
$ wget https://fping.org/dist/fping-4.0.tar.gz $ tar -xvf fping-4.0.tar.gz $ cd fping-4.0/ $ ./configure $ make && make install
Example: Fping Multiple IP Address
The below command will fping multiple IP address at once and it will display status as alive or unreachable.
# fping 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 is alive 126.96.36.199 is unreachable 188.8.131.52 is unreachable