ping

ping 

ping is a utility used to test the reachability of a host on a network and measure the round-trip time for messages sent to the destination. It is useful for diagnosing network connectivity issues.

Common Ping Options

  • -c: Specifies the number of echo requests to send.
  • -W: Sets the timeout (in seconds) for waiting for a response.

Using fping fping is a program that sends ICMP echo requests to multiple hosts simultaneously, making it faster for network diagnostics.

Using hping hping is a command-line tool that can send custom TCP/IP packets and is used for advanced network testing, including firewall testing.

Examples of Ping Commands

Ping the target host example.com.
> ping example.com

Ping example.com 5 times.
> ping example.com -c 5

Use fping to ping example.com
> fping example.com

Use hping to send 5 packets to example.com with a timeout of 2 seconds.
> hping3 -c 5 -W 2 example.com