en
  English
Phone :  +370 (5) 204-1903
Email: sales@1gbits.com
  1. Dedicated server
  2. Blog
  3. How To Install Fping on CentOS 7

How To Install Fping on CentOS 7

Fping is a small program that uses ICMP (Internet Control Message Protocol) echo requests that the target host is responding like a ping command in Linux. It’s totally different from the ping command as it is used to ping the number of specified hosts on the command line or specific files having a list of IP addresses to ping.

Centos Tutorials Sep 26, 16 by admin 4 min Read
How To Install Fping on CentOS 7

For example, we can specify the complete network Fping like (192.168.0.1/24 Class C Network). It will send a Fping request to the host and move to another target host as you mentioned. This works like round-robin. Unlike ping, fping is meant for basic scripting.

If you want Fping, you will need to install Fping packages separately as this doesn’t come together with the Operating System.

How to Install Fping on CentOS 7

First, download fping source package to your Linux server (the latest version is 3.10):

wget http://fping.org/dist/fping-3.10.tar.gz

To install the fping application, follow the steps below:

tar -xvf fping-3.10.tar.gz

cd fping-3.10

./configure

make

make install

You can compile fping with support for IPv6 addresses follow next steps:

./configure --prefix=/usr/local --enable-ipv4 --enable-ipv6

make

make install

Thats it! You have successfully installed fping on your CentOS server. Now for the next section of the article, we will go through some of the basic use cases of the fping command!

Use cases of the fping command

Fping multiple IP addresses:

fping 8.8.8.8 8.8.4.4 104.28.25.20

8.8.4.4 is alive
8.8.8.8 is alive
104.28.25.20 is alive

Fping range of ip address:

fping -s -g 192.168.1.1 192.168.1.5

ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.1
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.3
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.5
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.1
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.3
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.5
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.1
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.3
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.5
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.1
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.3
ICMP Network Unreachable from 83.231.213.65 for ICMP Echo sent to 192.168.1.5
192.168.1.1 is unreachable
192.168.1.2 is unreachable
192.168.1.3 is unreachable
192.168.1.4 is unreachable
192.168.1.5 is unreachable

      5 targets
      0 alive
      5 unreachable
      0 unknown addresses

      5 timeouts (waiting for response)
     20 ICMP Echos sent
      0 ICMP Echo Replies received
      12 other ICMP received

0.00 ms (min round trip time)
0.00 ms (avg round trip time)
0.00 ms (max round trip time)
        4.191 sec (elapsed real time)

Fping complite network

fping -g -r 3 192.168.1.1/24

Show fping version

fping -v

fping: Version 3.10
fping: comments to david@schweikert.ch

Wrapping up

Congratulations! You have successfully installed Fping on your CentOS 7 VPS. We also covered some of the basic use cases of the fping command. We hope that you managed to set it up and if you come across any problems during the installation, let us know in the comments below.

author img

admin

Generic placeholder image
Laurel

2020 Dec 23, 10:12:10

We absolutely love your blog and find many of your post's to be exactly I'm looking for. can you offer guest writers to write content available for you? I wouldn't mind publishing a post or elaborating on a lot of the subjects you write concerning here. Again, awesome blog!

Leave A Comment