Networking Forums

Networking Forums > Computer Networking > Linux Networking > "broadcast-ping" existing?

Reply
Thread Tools Display Modes

"broadcast-ping" existing?

 
 
Tom H. Lautenbacher
Guest
Posts: n/a

 
      12-19-2003, 05:49 PM
hello NG,

is there a tool or bash- command, with wich i can scan a whole subnet?

e.g:
i am in the subnet 192.168.0.0

now instead of pinging each node single, i would like to do a kind of
"broad-cast-ping", wich pings from 192.168.0.1 - 192.168.0.255 and lists all
nodes wich where found.

any clew?

thanx,
tom.
____________________ http://tom.lautenbacher.biz ____________________


 
Reply With Quote
 
 
 
 
Martin Blume
Guest
Posts: n/a

 
      12-19-2003, 06:24 PM

"Tom H. Lautenbacher" <(E-Mail Removed)> schrieb
> hello NG,
>
> is there a tool or bash- command, with wich i can scan a whole
> subnet?
>
> e.g:
> i am in the subnet 192.168.0.0
>
> now instead of pinging each node single, i would like to do a
> kind of "broad-cast-ping", wich pings from 192.168.0.1 -
> 192.168.0.255 and lists all nodes wich where found.

1.) ping:
ping -b
ATTENTION: not every host responds to broadcast pings

2.) bash & ping

$ for i in `seq 1 254`; do
> ping -c 1 -t 1 192.168.0.$i >/dev/null 2>&1
> if [ $? -eq 0 ]; then
> echo "host $i is UP"
> fi
> done

host 5 is UP
host 7 is UP
....

3.) specialized tool
nmap - the Rolls-Royce for such jobs

4.) others
I am sure there are other methods, these are left as an exercise
for the reader.

>
> any clew?

clue ?

HTH
Martin



 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      12-19-2003, 07:16 PM
On Fri, 19 Dec 2003 19:49:04 +0100, Tom H. Lautenbacher wrote:
> hello NG,
>
> is there a tool or bash- command, with wich i can scan a whole subnet?
>
> e.g:
> i am in the subnet 192.168.0.0
>
> now instead of pinging each node single, i would like to do a kind of
> "broad-cast-ping", wich pings from 192.168.0.1 - 192.168.0.255 and lists all
> nodes wich where found.
>
> any clew?


man ping ?

ping -bc 2 192.168.1.255

Not all systems/OSs may respond to broadcast pings.


man arp
man nmap if you loaded it.

Today's Tip of the Day, very large
Frequently Asked Questions (faq) Search engine:

http://groups.google.com/advanced_group_search
tool scan subnet in the first box
*linux* in the Newsgroup, pick English

Results 1 - 10 of about 37. Search took 0.69 seconds
 
Reply With Quote
 
Tom H. Lautenbacher
Guest
Posts: n/a

 
      12-20-2003, 11:02 AM
hello Martin!

> > is there a tool or bash- command, with wich i can scan a whole


> 3.) specialized tool
> nmap - the Rolls-Royce for such jobs


thanx a lot for your tips,

greetings,
tom.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fwd: SPEWS DOLTS "SneakyP", "Kevin!:?)", "WindsorFox" SPAM braodbandnewsgroup] !:?) Broadband 0 11-30-2005 01:04 AM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
help me : "ping IP" works but not "ping NAME" on windows 98 2nd edition zef Windows Networking 1 08-05-2003 07:49 PM



1 2 3 4 5 6 7 8 9 10 11