finding remote MAC address
Jerry Feldman
gaf at blu.org
Tue Apr 29 11:20:46 EDT 2003
On Tue, 29 Apr 2003 11:13:07 -0400
Tom Buskey <tom at buskey.name> wrote:
> >I need to write a script that will take in a list of IP's, and from
> >that list find the mac address for these IP's so we can make our move
> >over to dhcp. I think this would be pretty easy to do in perl, but
> >I'm not sure of how to find the mac address of a remote device. Any
> >ideas or existing solutions anyone knows about?
> >
> >Derek Doucette
> >http://derek.homeunix.org
> >
> >
> As an initial stab (local subnet only):
> ping IP
> arp -a to view the arp table which will have mac/ip in it.
That will only work from inside of a subnet. You will see that the MAC
address for the remote host (outside of the subnet) will be the same MAC
address of the router.
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20030429/448ce0b0/attachment.bin
More information about the gnhlug-discuss
mailing list