Install Fping a Fast Ping Alternative on Linux

fping is a program to send ICMP echo probes to network hosts, similar to ping, but much better performing when pinging multiple hosts. fping has a very long history: Roland Schemers did publish a first version of it in 1992 and it has established itself since then as a standard tool for network diagnostics and statistics.

Also it's different from ping in that you can specify any number of hosts on the command line. Instead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion.


To install the Fping packages on various distros, run following command:

For Arch Linux

sudo pacman -Syu
sudo pacman -S fping

For Debian (Raspbian)

sudo apt-get update
sudo apt-get install fping

For Ubuntu

sudo apt-get update
sudo apt-get install fping

For OpenWrt

opkg update
opkg install fping

Usage for fping

To use fping, it's easy as you using ping command but fping command line is also difference

Ping a host


Ping multi host


Ping from host list

fping < host.txt

Options for fping

[su_spoiler title="Options"] −a Show systems that are alive. −A Display targets by address rather than DNS name. −b n Number of bytes of ping data to send. −B n This parameter is the value by which the wait time is multiplied on each successive request; it must be entered as a floating-point number (x.y). The default is 1.5. −c n Number of request packets to send to each target. −C n Similar to −c, but the per-target statistics are displayed in a format designed for automated response-time statistics gathering. −d Use DNS to lookup address of return ping packet. This allows you to give fping a list of IP addresses as input and print hostnames in the output. −D Add Unix timestamps in front of output lines generated with in looping or counting modes (−l, −c, or −C). −e Show elapsed (round-trip) time of packets. −f Read list of targets from a file. This option can only be used by the root user. Regular users should pipe in the file via stdin: % fping < targets_file −g addr/mask Generate a target list from a supplied IP netmask, or a starting and ending IP . −h Print usage message. −i n The minimum amount of time (in milliseconds) between sending a ping packet to any target (default is 25). −l Loop sending packets to each target indefinitely. Can be interrupted with Ctrl-C; statistics about responses for each target are then displayed. −m Send pings to each of a target host’s multiple interfaces. −n Same as −d. −p <n> This parameter sets the time in milliseconds that fping waits between successive packets to an individual target. Default is 1000. −q Quiet. Don’t show per-probe results, but only the final summary. Also don’t show ICMP error messages. −Q n Like −q, but show summary results every n seconds. −r n Retry limit (default 3). This is the number of times an attempt at pinging a target will be made, not including the first try. −s Print cumulative statistics upon exit. −S addr Set source address. −I if Set the interface (requires SO_BINDTODEVICE support) −t n Initial target timeout in milliseconds (default 500). In the default mode, this is the amount of time that fping waits for a response to its first request. Successive timeouts are multiplied by the backoff factor. −u Show targets that are unreachable. −O n Set the typ of service flag ( TOS ). n can be either decimal or hexadecimal (0xh) format. −v Print fping version information. −H n Set the IP TTL field (time to live hops). [/su_spoiler]


  1. fping3 homepage
  2. fping3 options
  3. Image by David Precious / CC BY 2.0