MAC Adressen im Netzwerk scannen?
Jan-Benedict Glaw
jbglaw at lug-owl.de
Sat Jan 6 10:09:11 CET 2001
On Fri, Jan 05, 2001 at 11:35:16PM +0100, Achim Dreyer wrote:
> >
> > 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
>
> oder bei sauber konfigurierten Netzen:
>
> ping -c 1 192.168.1.255 2>/dev/null 1>&2
> ping -c 1 192.168.1.0 2>/dev/null 1>&2
> arp -a
Sauber? Naja, selbst Windows-Rechner antworten nicht mehr auf
Broadcast-Pings, und viele Linux-Kisten sind auch darauf
konfiguriert... Das klappt also eher nur in Ausnahmefällen;)
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/20010106/35c44def/attachment.sig>
More information about the Linux
mailing list