Tuesday, July 17, 2007

ping IP subnet block howto

Here's a quick way on how to send ICMP echo request to a group of host to determine if they are responding or unreachable.

There are only a few advantage of using fping instead of ping linux command. One is you don't need to create a shell script that pings list of IP address from a batch files. With fping, you can try to ping a group of consecutive IP address in just a single command. Another benefit from using fping is it jumps on sending the next ICMP echo request to a host on a round-robin fashion, just like calling ping while feeding it with another IP address.

Like so:

# fping -g 192.168.1.0/24

# fping -g 192.168.1.0 192.168.1.255

which sends ICMP echo requests to the full block of CLASS C IP address from 192.168.1.1 to 192.168.1.254.

You might want to try

# fping -g 192.168.1.0/27

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy