How to use fping?

QuestionsQuestions8 SkillsProYour First Linux LabAug, 31 2025
0439

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

  1. Ping a Single Host

    fping example.com
  2. Ping Multiple Hosts

    fping host1.com host2.com host3.com
  3. Ping a Range of IP Addresses

    fping -g 192.168.1.1 192.168.1.10

    This will ping all IP addresses from 192.168.1.1 to 192.168.1.10.

  4. Show Only Alive Hosts

    fping -a -g 192.168.1.1 192.168.1.10

    The -a option will display only the hosts that are reachable.

  5. Set Timeout

    fping -t 1000 example.com

    The -t option sets the timeout for each ping in milliseconds.

  6. Display Statistics

    fping -s -g 192.168.1.1 192.168.1.10

    The -s option 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.

0 Comments

no data
Be the first to share your comment!