scan for machines in the subnet




I wonder what is the easiest and fastest way to detect all machines in the current subnet from one of the machines and get their MAC-adresses.

My first approach would be to ping each possible adress and then read the arp-table for valid mac's.

But assuming my limited knowledge of arp and other protocol-layers I guess there are much better ways.

I tried a broadcast-ping on the subnet (ping -b 10.21.1.0) but to my suprise it did not make all machines respond.

The more sophisticated question (and not acutally part of my task to keep tracks and logs of all machines in a WLAN-network) is if there is a way to detect machines that does not respond to ICMP-requests like ping.
One could use tools like nmap on each possible adress and every port, but this would take a lot of time.
Maybe there is a protokoll/layer (like arp?) that makes every networkcard respond to certain requests.

Any help is greatly appretiated. And excuse for possible stupid assumptions in my posting. I usually think I know a lot about networks cause I play with servers every day, but when it comes to questions that exceeed the terms "ip-adress" and "port" I realize pretty soon that in fact I know nothing.

thnx
peter



.



Relevant Pages

  • Re: Multihomed Server Routing Woes: Two network segments cant com
    ... You have to change the default gateway to all the computers in the 192.168.1.x subnet for the computers on the other subnet to access them. ... access the machines on the 170.34.179.x network. ... Both NICs are connected to the same> switch. ... > - Any other machine on 192.168.1.x cannot ping any machine on ...
    (microsoft.public.windows.server.networking)
  • Re: Routing Problem
    ... To be able to ping machines in the 172.16.7.0 subnet from the ... It also has a Linix Server ...
    (microsoft.public.win2000.ras_routing)
  • Re: Cant Navigate My LAN Or Ping
    ... Can't Navigate My LAN Or Ping ... Are both machines on the same subnet? ...
    (Ubuntu)
  • Re: help on network config
    ... As I understand you have three machines of which each is in it's own ... That means that you require a router in each segment to ... email you problem probably lays with routing between each subnet. ... TianJin Meteorological Bureau ...
    (Ubuntu)
  • Re: routing, was: Re: <blank subject>
    ... > AND a /28 subnet over a second connection? ... your ISP will route IP traffic for the subnet to you. ... you might want to consider how to have machines on your ...
    (freebsd-questions)