Skip to content

How can I ping multiple IP addresses at the same time in linux

Just need install fping package for your distro

For Fedora, CentOS, AlmaLinux etc.

yum install fping -y

For Debian, Ubuntu etc.

apt install fping -y

We are ready now for tests:

fping -a -A -l host1 host2 host3 host4 etc...
fping -a -A -l cloudflare.com bbc.com yahoo.com google.com

Params:

  • -a  Show systems that are alive
  • -A Display targets by address rather than DNS name
  • -l Loop sending packets to each target indefinitely. Can be interrupted with Ctrl-C; statistics about responses for each target are then displayed.