{"id":12593,"date":"2019-03-28T02:47:26","date_gmt":"2019-03-28T02:47:26","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12593"},"modified":"2019-03-28T02:47:26","modified_gmt":"2019-03-28T02:47:26","slug":"fping-a-high-performance-ping-tool-for-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/fping-a-high-performance-ping-tool-for-linux\/","title":{"rendered":"Fping \u2013 A High Performance Ping Tool for Linux"},"content":{"rendered":"<p><strong>fping<\/strong>\u00a0is a small command line tool to send\u00a0<strong>ICMP<\/strong>\u00a0(<strong>Internet Control Message Protocol<\/strong>) echo request to network hosts, similar to ping, but much higher performing when pinging multiple hosts. fping totally differs from ping in that you can define any number of hosts on the command line or specify a file with the list of IP addresses or hosts to ping.<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/linux-networking-commands\/\" target=\"_blank\" rel=\"noopener\">A Linux Sysadmin\u2019s Guide to Network Management, Troubleshooting and Debugging<\/a><\/p>\n<p>For example, using fping, we can specify the complete network range (<strong>192.168.0.1\/24<\/strong>). It will send Fping request to host and move to another target host in a round-robin fashion. Unlike ping, Fping is meant for basically scripting.<\/p>\n<h3>How to Install Fping in Linux Systems<\/h3>\n<p>In most Linux distributions, the package\u00a0<strong>fping<\/strong>\u00a0is available to install from the default package repositories using package management tool as shown.<\/p>\n<pre># sudo apt install fping  [On <strong>Debian\/Ubuntu<\/strong>]\r\n# sudo yum install fping  [On <strong>CentOS\/RHEL<\/strong>]\r\n# sudo dnf install fping  [On <strong>Fedora 22+<\/strong>]\r\n# sudo pacman -S fping    [On <strong>Arch Linux<\/strong>]<\/pre>\n<p>Alternatively, you can install latest version of\u00a0<strong>fping<\/strong>\u00a0(<strong>4.0<\/strong>) from the source package using following commands.<\/p>\n<pre>$ wget https:\/\/fping.org\/dist\/fping-4.0.tar.gz\r\n$ tar -xvf fping-4.0.tar.gz\r\n$ cd fping-4.0\/\r\n$ .\/configure\r\n$ make &amp;&amp; make install\r\n<\/pre>\n<p>Let\u2019s see some Fping command with their examples.<\/p>\n<h4>1. Fping Multiple IP Address<\/h4>\n<p>The below command will fping multiple\u00a0<strong>IP<\/strong>\u00a0address at once and it will display status as alive or unreachable.<\/p>\n<pre><strong># fping 50.116.66.139 173.194.35.35 98.139.183.24<\/strong>\r\n\r\n50.116.66.139 is alive\r\n173.194.35.35 is unreachable\r\n98.139.183.24 is unreachable\r\n<\/pre>\n<h4>2. Fping Range of IP Address<\/h4>\n<p>The following command will fping a specified range of IP addressees. With below output we are sending echo request to range of IP address and getting reply as we wanted. Also cumulative result shown after exit.<\/p>\n<pre><strong># fping -s -g 192.168.0.1 192.168.0.9<\/strong>\r\n\r\n192.168.0.1 is alive\r\n192.168.0.2 is alive\r\nICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3\r\nICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3\r\nICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.3\r\nICMP Host Unreachable from 192.168.0.2 for ICMP Echo sent to 192.168.0.4\r\n192.168.0.3 is unreachable\r\n192.168.0.4 is unreachable\r\n\r\n8      9 targets\r\n       2 alive\r\n       2 unreachable\r\n       0 unknown addresses\r\n\r\n       4 timeouts (waiting for response)\r\n       9 ICMP Echos sent\r\n       2 ICMP Echo Replies received\r\n      2 other ICMP received\r\n\r\n 0.10 ms (min round trip time)\r\n 0.21 ms (avg round trip time)\r\n 0.32 ms (max round trip time)\r\n        4.295 sec (elapsed real time)<\/pre>\n<h4>3. Fping Complete Network with Different Options<\/h4>\n<p>With above command, it will ping complete network and repeat once (<strong>-r 1<\/strong>). Sorry, it\u2019s not possible to show output of the command as it is scrolling up my screen with no time.<\/p>\n<pre><strong># fping -g -r 1 192.168.0.0\/24<\/strong><\/pre>\n<h4>4. Reads the List of Targets From a File<\/h4>\n<p>We have create a file called\u00a0<strong>fping.txt<\/strong>\u00a0having IP address (<strong>173.194.35.35<\/strong>\u00a0and\u00a0<strong>98.139.183.24<\/strong>) to fping.<\/p>\n<pre><strong># fping &lt; fping.txt<\/strong>\r\n\r\n173.194.35.35 is alive\r\n98.139.183.24 is alive<\/pre>\n<h4>5. Show Version of Fping<\/h4>\n<p>Check the Fping version by executing the command.<\/p>\n<pre><strong># fping -v<\/strong>\r\n\r\nfping: Version 4.0\r\nfping: comments to david@schweikert.ch\r\n<\/pre>\n<p>Those who want to get more information with options about\u00a0<strong>Fping<\/strong>\u00a0command, please look into a man page. Also requested to try Fping command in your environment and share your experience with us through the comment box below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/ping-multiple-linux-hosts-using-fping\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>fping\u00a0is a small command line tool to send\u00a0ICMP\u00a0(Internet Control Message Protocol) echo request to network hosts, similar to ping, but much higher performing when pinging multiple hosts. fping totally differs from ping in that you can define any number of hosts on the command line or specify a file with the list of IP addresses &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/fping-a-high-performance-ping-tool-for-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fping \u2013 A High Performance Ping Tool for Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12593","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12593"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12593\/revisions"}],"predecessor-version":[{"id":12594,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12593\/revisions\/12594"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}