• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Fping ICMP Program on RHEL and CentOS

{{postValue.id}}

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

Tags:
mason
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

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

Q

Is there a way prevent fping from showing targets that are unreachable?

A

just redirect stderr:

fping -g 192.168.1.0/24 2> /dev/null

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.