How to install Fping ICMP Program on RHEL and CentOS
To install Fping ICMP Program on RHEL and CentOS
In this article we will discuss about how to install Fping ICMP Program on RHEL and CentOS. Fping uses ICMP (Internet Control Message Protocol). Fping command is used to ping multiple IP address. It is not available by default in the operating system, we need to install the packages to use the Fping command.
To download Fping RPM Package
It can be downloaded using wget command.
For RHEL/CentOS 6/5/4 32-Bit OS
## For RHEL/CentOS 6.3-6.0 32-Bit OS ## # wget http://pkgs.repoforge.org/fping/fping-3.1-1.el6.rf.i686.rpm ## For RHEL/CentOS 5 32-Bit OS ## # wget http://pkgs.repoforge.org/fping/fping-3.1-1.el5.rf.i386.rpm ## For RHEL/CentOS 4 32-Bit OS ## # wget http://pkgs.repoforge.org/fping/fping-3.1-1.el4.rf.i386.rpm For RHEL/CentOS 6/5/4 64-Bit OS ## For RHEL/CentOS 6.3-6.0 64-Bit OS ## # wget http://pkgs.repoforge.org/fping/fping-3.1-1.el6.rf.x86_64.rpm ## For RHEL/CentOS 5 64-Bit OS ## # wget http://pkgs.repoforge.org/fping/fping-3.1-1.el5.rf.x86_64.rpm ## For RHEL/CentOS 4 64-Bit OS ## # wget http://pkgs.repoforge.org/fping/fping-3.1-1.el4.rf.x86_64.rpm
To install Fping RPM Package
The rpm command is used to download the Fping rpm package for your Linux distribution.
For RHEL/CentOS 6/5/4 32-Bit OS
## For RHEL/CentOS 6.3-6.0 32-Bit OS ## # rpm -ivh http://pkgs.repoforge.org/fping/fping-3.1-1.el6.rf.i686.rpm ## For RHEL/CentOS 5 32-Bit OS ## # rpm -ivh http://pkgs.repoforge.org/fping/fping-3.1-1.el5.rf.i386.rpm ## For RHEL/CentOS 4 32-Bit OS ## # rpm -ivh http://pkgs.repoforge.org/fping/fping-3.1-1.el4.rf.i386.rpm For RHEL/CentOS 6/5/4 64-Bit OS ## For RHEL/CentOS 6.3-6.0 64-Bit OS ## # rpm -ivh http://pkgs.repoforge.org/fping/fping-3.1-1.el6.rf.x86_64.rpm ## For RHEL/CentOS 5 64-Bit OS ## # rpm -ivh http://pkgs.repoforge.org/fping/fping-3.1-1.el5.rf.x86_64.rpm ## For RHEL/CentOS 4 64-Bit OS ## # rpm -ivh http://pkgs.repoforge.org/fping/fping-3.1-1.el4.rf.x86_64.rpm
To Fping multiple IP Address
Run the following command to Fping multiple IP Address.
# fping 50.116.66.139 173.194.35.35 98.139.183.24 50.116.66.139 is alive 173.194.35.35 is alive 98.139.183.24 is alive
To Fping Range of IP address
Run the following command to Fping Range of IP address.
# fping -s -g 192.168.0.1 192.168.0.9
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 Fping Complete Network with Different Options
This command will ping complete network and repeat once (-r 1)
# fping -g -r 1 192.168.0.0/24 To read the List of Targets From a File # fping < fping.txt 173.194.35.35 is alive 98.139.183.24 is alive
To show Version of Fping
# fping -v fping: Version 3.1 fping: comments to david@schweikert.ch
Tag :
ICMP
Q
what is fping pls, elaborate ?
A
Fping is a small program that uses ICMP (Internet Control Message Protocol) echo request that the target host is responding like ping command in Linux. It’s totally different from ping comman
Q
can anyone explain hping?
A
hping is another sister command of ping to test the network. In some distributions it is known as hping3 and not installed by default. hping3 is a network tool able to send custom TCP/IP pack
Q
is there any other ping command other than ping , fping ?
A
hping , tcping, tcpping are the other ping commands that you can run on linux.
Q
how to install tcpping?
A
"sudo apt-get install tcptraceroute" for debian based machine AND
"sudo yum install tcptraceroute" for CentOS/REHL
"sudo yum install tcptraceroute" for CentOS/REHL
fping -g 192.168.1.0/24 2> /dev/null