Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pinging subnet

Status
Not open for further replies.

danomac

IS-IT--Management
Aug 2, 2002
731
AM
Is there an easy way to ping the subnet to see what IP addresses are active? I tried broadcast ping and I know one IP is up for sure and it didn't respond, so that's not a terribly good solution.
 
To answer my own question...

I thought about writing a simple bash script, until I realized I can set a minimum of a one second timeout. This of course would lead to over four minutes of scan time.

I'd forgotten I had nmap installed. Quick look at the man pages and I found a way to scan my subnet in four seconds:

Code:
nmap -n -sP 192.168.0.0/24

Of course this only works if your hosts respond to ping. I know all of mine on my home network do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top