Re: ARP, getting mac address from IP address

Joshua Krage (jkrage@scientech.com)
Thu, 02 May 96 11:51:44 -0500

> I am looking for a way to resolve an IP address to an associated MAC
> address with out depending on SNMP. I am trying to do this with in a
> scotty script. ANY Ideas?

Check your ARP table. If your machine has communicated with another
machine on the local subnet, the remote machine's MAC address should
be in the ARP table.

A few weeks ago I ended up writing a script to convert my entire ARP
table into slightly better output sorted by IP address. If anyone
want it, I've stuck a copy at:
<ftp://ftp.access.digex.net/pub/access/jkrage/arptran.pl>

Its simplistic. Has comments at the front of the file describing how
to get MAC addresses for a subnet.

----------------------------------------------------------------------------
jkrage@scientech.com Joshua Krage
Network Administrator SCIENTECH, Inc. (301) 468-6425