Forrest logo
back to the fping tool

fping:tldr:11755

fping: List alive hosts within a subnet generated from an IP range.
$ fping -a -g 192.168.1.1 192.168.1.254
try on your machine

The command fping -a -g 192.168.1.1 192.168.1.254 is used to perform a network scan by pinging a range of IP addresses within the specified subnet.

Here is the breakdown of the command:

  • fping is a command-line tool used for sending ICMP echo requests (pings) to network hosts to check their availability and measure their response time. It is similar to the standard ping command but allows for pinging multiple hosts simultaneously.

  • -a is an option that tells fping to display any live hosts (responding to the ICMP echo requests) in the output. It filters out hosts that are not reachable.

  • -g 192.168.1.1 192.168.1.254 specifies the IP address range to scan. In this case, it is the range of IP addresses from 192.168.1.1 to 192.168.1.254 within the 192.168.1.x subnet. The -g option tells fping to generate the IP address range based on the given starting and ending IP addresses.

When the command is executed, fping will send ICMP echo requests to each IP address in the specified range and display the live hosts in the output. This is useful for quickly identifying hosts that are active and reachable in a given network.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fping tool