fping switches for network scanning

Harsh Hatej
2 min readAug 9, 2024

fping is a command-line network diagnostic tool used to quickly ping multiple hosts simultaneously. fping by default uses icmp protocol to ping.

Installation :

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 fping can be installed from its source package :

$ 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

Official website : https://fping.org/

Here are some most used switches of fping for network scanning :

#to see if the IP is live or not
fping <ip-address>/<domain-name>
fping 192.168.1.1
fping hell.local

#to use IPv4
fping -4 <ip-address>/<domain-name>

#to use IPv6
fping -6 <ip-address>/<domain-name>

#we can also give number of IPs to check which one are live
fping <ip-addresses-with-space>
fping 192.168.1.1 192.168.1.108 192.168.247

#to give a IP list in text file
fping -f <file-name>

#to give a full range of network
fping -g…

--

--