Advance

Learning to work with Fping tools on Linux

Learning to work with Fping tools on Linux
5
(2)

How to work with Fping tools on Linux.

Certainly, nowadays no one is unfamiliar with the Ping command and do not know that, with this command, ICMP packets can be sent to another device on the network and be informed of its status. Now in this article, from the Linux tutorial series, we are going to introduce you to an attractive tool called fping so that you can take advantage of its practical capabilities. Join us to learn how to work with Fping tools on linux.

Recommended Article: Tutorial WordPress installation with Nginx in Ubuntu 20.04

 

What is Fping?

Fping is a small tool that you can install separately on your Linux and use it to pin devices inside the network. But the important thing about this tool is that, its distinct with Ping commands. It is the ability to ping multiple devices on a network, allows us to ping all systems within a network or different IP addresses simultaneously.

Join us now to learn how to work with Fping tools on Linux and of course install it

Learning to work with Fping tools on Linux

Fping installation

You can use the following commands to install fping in different versions of Linux :

Install fping on CentOS and Redhat

yum install fping  

Installing fping on Debian and Ubuntu VPS

apt install fping  

Installing fping in Fedora

dnf install fping  

Installing fping in Arch Linux

pacman -S fping  

Therefore you will be able to install fping on your Linux.

After installation, to ensure the correct installation status, you can enter the following command to display the installed fping version on your server.

fping -v  

The output of the above command will be as it follows.

Output    fping: Version 4.0  fping: comments to [email protected]  

Note: If the output correctly displays the tool version, it means that the fping is installed correctly.

Well, so far you’ve managed to install fping on your Linux; In the following, we will teach you how to work with it in Linux.

Working with Fping commands

The easiest way to use the fping command to test and check multiple different IP addresses simultaneously would be as follows.

fping 40.116.66.139 173.194.35.35 98.139.183.24  

After entering the above command, the output of the command will be as follows.

Output    40.116.66.139 is alive  173.194.35.35 is unreachable  98.139.183.24 is unreachable  

To use fping to check and test a range of IP addresses, you can enter the fping command as follows.

fping -s -g 192.168.0.1 192.168.0.9  

After entering the above command, you will have the same output as the following statements.

192.168.0.1 is alive  192.168.0.2 is alive  ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3  ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3  ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3  ICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.4  192.168.0.3 is unreachable  192.168.0.4 is unreachable    8 9 targets  2 alive  2 unreachable  0 unknown addresses    4 timeouts (waiting for response)  9 ICMP Echos sent  2 ICMP Echo Replies received  2 other ICMP received    0.10 ms (min round trip time)  0.21 ms (avg round trip time)  0.32 ms (max round trip time)  4.295 sec (elapsed real time)  

To ping a subnet completely, you will be able to enter the fping command as shown below.

fping -g -r 1 192.168.0.0/24  

 

Recommended Article: Learning to work with Fping tools on Linux

 

Note that in the above command, the -r parameter with the number 1 is used, which means that the whole subnet has to be in ping command only once.

Finally, another interesting feature of fping is the ability to read IP addresses from a TXT file that enables you to create a file from all the desired IP addresses and call it whenever you want.

fping < IPs.txt  

In the above command, we have already created a file called IPs.txt and in the above command we called it.

We hope you enjoy the tutorial on working with Fping tools on Linux.

If you have any questions or problems, you can ask the Ask system to provide guidance.

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

View More Posts
Tom Veitch
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day