MAC Adressen im Netzwerk scannen?

Jan-Benedict Glaw jbglaw at lug-owl.de
Fri Jan 5 20:47:21 CET 2001


On Fri, Jan 05, 2001 at 04:46:35PM +0100, Sebastian Ritter wrote:
> Und noch einmal Hallo,
> 
> mit welchem Prog kann ich die Hardware-Netzwerkadressen MAC in einem
> Netzwerk scannen?

for i in 192.168.1.1 192.168.1.2 .....; do
	ping -c 1 $i > /dev/null 2>&1
	arp -an $i >> MAC_Liste
done

MfG, JBG

-- 
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw at lug-owl.de> -- +49-177-5601720 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
     "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20010105/8c7b15d0/attachment.sig>


More information about the Linux mailing list