The fping command is used to send ICMP echo requests to multiple hosts simultaneously. Here are some common usages of fping:
Basic Syntax
fping [options] <host1> <host2> ...
Examples
-
Ping a Single Host
fping example.com -
Ping Multiple Hosts
fping host1.com host2.com host3.com -
Ping a Range of IP Addresses
fping -g 192.168.1.1 192.168.1.10This will ping all IP addresses from 192.168.1.1 to 192.168.1.10.
-
Show Only Alive Hosts
fping -a -g 192.168.1.1 192.168.1.10The
-aoption will display only the hosts that are reachable. -
Set Timeout
fping -t 1000 example.comThe
-toption sets the timeout for each ping in milliseconds. -
Display Statistics
fping -s -g 192.168.1.1 192.168.1.10The
-soption will display statistics after the pinging is complete.
Help Option
To see all available options and usage information, you can run:
fping -h
This will provide you with a comprehensive list of options you can use with fping.
