[vox-tech] too lazy to look it up

ME vox-tech@lists.lugod.org
Tue, 25 Jun 2002 08:09:53 -0700 (PDT)


On Tue, 25 Jun 2002, Paul Barnhart wrote:
> Is there some utility that will return the hardware address(MAC) of 
> every ethernet card on a network.

arpwatch is rather passive. It waits till it "sees" a new MAC address it
has not before. Actually, I think it looks for IP and MAC address pairs in
combination not seen before.

You could make a perl script that tries to talk with every IP address in
your subnet, and then consults /proc/net/wrp with a search on that IP
address being checked to pull out the MAC addresses in use, but that is
more of an active scan...


-ME

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++ 
L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ !PGP
t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
------END GEEK CODE BLOCK------
decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html