Skip to content

fping

30 commands

Pings many hosts in parallel and reports which are alive — a faster, script-friendly alternative to looping over ping.

  • host discovery
  • ICMP
  • ping sweep

Install fping

sudo apt install fping

Basic Host Reachability1

fping 192.168.1.1

Sends ICMP echo requests to a single target.

Verifies connectivity quickly using ICMP.

Multiple Hosts and CIDR Ranges3

fping 192.168.1.1 192.168.1.2

Pings multiple specified IPs sequentially.

Efficiently checks a list of hosts without multiple command calls.

fping -g 192.168.1.0/24

Generates target list from CIDR mask (-g).

Sweeps an entire subnet to find active hosts.

fping -g 192.168.1.1 192.168.1.50

Scans a specific IP range (-g start end).

Defined by start and end IP addresses for precise scope control.

Input from File1

fping -f targets.txt

Reads targets from a file (-f).

Ideal for bulk scanning lists of servers or devices.

Alive Host Detection1

fping -a -g 192.168.1.0/24

Displays only alive hosts (-a).

Filters output to show only reachable targets, reducing noise.

Unreachable Host Detection1

fping -u -g 192.168.1.0/24

Displays only unreachable hosts (-u).

Useful for identifying downed servers or connectivity gaps.

Quiet and Summary Modes1

fping -q -g 192.168.1.0/24

Quiet mode (-q).

Suppresses per-host output, showing only final summary or specified status.

Latency and Statistics Reporting2

fping -s -g 192.168.1.0/24

Prints cumulative statistics (-s).

Shows total targets found, elapsed time, and other metrics upon completion.

fping -e 192.168.1.1

Displays elapsed round trip time (-e).

Shows latency for each response, helping diagnose network slowness.

Link

Packet Count and Interval Control3

fping -c 5 192.168.1.1

Sends 5 packets per target (-c).

Provides a more reliable connectivity test than a single ping.

Link
fping -i 10 -g 192.168.1.0/24

Sets packet interval to 10ms (-i).

Controls the rate of sending packets to manage network load.

Link
fping -b 100 192.168.1.1

Sets packet payload size (-b).

Tests MTU and throughput by sending larger data chunks.

Link

Timeout and Retry Configuration2

fping -t 500 192.168.1.1

Sets per-packet timeout to 500ms (-t).

Speeds up failure detection for unresponsive hosts.

Link
fping -r 3 192.168.1.1

Retries 3 times on failure (-r).

Increases robustness against transient packet loss.

Link

Loop and Continuous Monitoring1

fping -l 192.168.1.1

Loops indefinitely (-l).

Continuous monitoring similar to standard ping, useful for stability testing.

Link

Output Formatting and Script Friendly Output1

fping -C 5 192.168.1.1

Columnar output format (-C).

Prints results in columns for easier parsing and visual comparison.

Link

Logging and File Output1

fping -D -l 192.168.1.1

Adds timestamps to output (-D).

Logs when each ping occurred, essential for correlating network events.

Link

IPv4 and IPv6 Scanning1

fping -6 ::1

Forces IPv6 usage (-6).

Ensures the tool uses the IPv6 stack for connectivity checks.

Link

Source Address and Interface Binding2

fping -I eth0 192.168.1.1

Binds to interface (-I).

Forces traffic out a specific network interface.

Link
fping -S 192.168.1.5 192.168.1.1

Sets source IP address (-S).

Spoofs or specifices the source IP for the ping packets.

Link

Network Troubleshooting Use Cases2

fping -O 0x10 192.168.1.1

Sets TOS byte (-O).

Tests IP ToS configurations for QoS and traffic shaping verification.

Link
fping -H 10 192.168.1.1

Sets TTL value (-H).

useful for testing path reachability limits or mapping hop counts.

Link

Asset Discovery and Inventory1

fping -A -g 192.168.1.0/24

Displays targets by hostname (-A).

Resolves IPs to hostnames for easier identification of targets.

Link

Blue Team Monitoring Scenarios2

fping -l -Q 10 192.168.1.1

Loops and prints summary every 10s (-l -Q).

Continuous monitoring with periodic status updates.

Link
fping -d 8.8.8.8

DNS lookup of return address (-d).

Verifies the reverse DNS record of the target IP.

Link

Red Team Reconnaissance Validation1

fping -aq -g 10.0.0.0/24 > live_hosts.txt

Quietly scans and saves live hosts (-aq).

Produces a clean list of active IPs for further enumeration.

Link

Advanced and Combined Real World Usage3

fping -c 20 -p 500 -e 192.168.1.1

Precision latency testing.

Sends 20 packets with 500ms intervals, showing RTT for each.

Link
fping -g 192.168.1.0/24 -a -r 0

Fast sweep with zero retries.

Maximizes speed for quick network discovery.

Link
fping -f targets.txt -C 5 -q -s

Batch ping with summary stats.

Efficiency checks a list of targets and reports final availability metrics.

Link