> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/reconnaissance/active-reconnaissance-approach/netwrok-scanning-tools/fping.md).

# fping

`fping` is a more advanced version of `ping`, designed for faster and more flexible network testing. Unlike `ping`, `fping` can **ping multiple hosts at once.**

### Syntax

```bash
fping [options] [targets...]
```

### Examples

* **Ping a single IP address**

  ```bash
  fping 192.168.1.1
  ```
* **Ping multiple IPs in one command**

  ```bash
  fping 192.168.1.1 192.168.1.2 192.168.1.3
  ```
* **Ping only IPv4 addresses**

  ```bash
  fping -4 google.com
  ```
* **Ping only IPv6 addresses**

  ```bash
  fping -6 ipv6.google.com
  ```
* **Send a specific number of pings to each target (e.g., 5 pings)**

  ```bash
  fping -c 5 192.168.1.1
  ```
* **Read a list of targets from a file**

  ```bash
  fping -f targets.txt
  ```

  *(Each line in `targets.txt` should contain one IP address or hostname.)*
* **Ping a range of IPs using CIDR notation**

  ```bash
  fping -g 192.168.1.0/24
  ```
* **Set the TTL (Time to Live) value**

  ```bash
  fping -H 64 192.168.1.1
  ```
* **Bind to a specific network interface**

  ```bash
  fping -I eth0 192.168.1.1
  ```
* **Run `fping` continuously (loop mode)**

  ```bash
  fping -l 192.168.1.1
  ```
* **Set a custom packet size (e.g., 100 bytes)**

  ```bash
  fping -b 100 192.168.1.1
  ```
* **Set a timeout (in milliseconds) before considering a packet lost**

  ```bash
  fping -t 1000 192.168.1.1
  ```
* **Specify the interval between packets (e.g., 500 ms)**

  ```bash
  fping -p 500 192.168.1.1
  ```
* **Set the number of retries (default is 3)**

  ```bash
  fping -r 5 192.168.1.1
  ```
* **Display only alive hosts**

  ```bash
  fping -a -g 192.168.1.0/24
  ```
* **Display only unreachable hosts**

  ```bash
  fping -u -g 192.168.1.0/24
  ```
* **Show results in verbose format**

  ```bash
  fping -C 3 192.168.1.1
  ```
* **Show reverse DNS lookup of the target**

  ```bash
  fping -n 192.168.1.1
  ```
* **Quiet mode (suppress per-ping output, only show summary)**

  ```bash
  fping -q 192.168.1.1
  ```
* **Show accumulated outage time**

  ```bash
  fping -o 192.168.1.1
  ```
* **Print timestamp before each output line**

  ```bash
  fping -D 192.168.1.1
  ```
* **Show version of fping**

  ```bash
  fping -v
  ```
