Homelinux tutorialHow to use Fping on Linux

How to use Fping on Linux

A High-Performance Ping Tool for Linux

We are looking at one by one how to use the tools in Linux in that order we want to see is the Fping tool. To access this tool on your Linux go-to information gathering> Live host identification> Fping

What is Fping?

Fping is a small command-line tool for sending ICMP (Internet Control Message Protocol) echo requests to network hosts, similar to Ping, but more efficient when pinging multiple hosts. Fping is completely different from Ping in that you can define how many hosts are in the command line or specify a file with a list of IP addresses or hosts.

How to install fping?

The fping tool is pre-installed on all types of Linux devices, and if you do not have a working Linux fping tool you can install it using the command below.

				
					# 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
				
			

Fping Command list

Usually, the fping tool is used to find out whether an IP address is alive or unreachable. Now let’s see how to check the IP addresses with the help of this fping tool.

Fping Multiple IP addresses

If you want to check more IP addresses at once, type fping and type your target IP address one after the other. See the image below for an example.

				
					fping 50.116.66.139 173.194.35.35 98.139.183.24
				
			
How to use Fping on Linux
Output for Scanning multiple ip address

Range of IP address

The following command will fping a specified range of IP addresses. With the below output, we are sending echo requests to a range of IP addresses and getting reply as we wanted. Also, cumulative results are shown after exit.

How to use Fping on Linux
Output for range of IP address

Complete network with different option

With the above command, it will ping the complete network and repeat once (-r 1). 

Output for complete scan

Also, if you want to know the version of the Fping tool, you can type Fping -v in your terminal.

I hope this post was helpful to you and I want to share this post with your friends too. If you have any doubts about this post you can ask me through the command section.

RELATED ARTICLES

Leave A Reply

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular