sun-managers,
I received many replies, most the correct answer. Here is my original question:
> I have an IP number of a host on my network. I want to know its ethernet
> (MAC) address. Sometimes I can get the ethernet number from the ARP table
> on my system if I first ping the host and then do a "arp -a".
>
> The problem is this only work for certain hosts. Why doesn't this approach
> work for any host?
The reason is that the host in question is on the other side of a router.
Thus, the router does not pass back the MAC address via arp to the source
machine.
Thanx to all that replied:
Todd Kover <kovert@cs.UMD.EDU>
sullivan@asc563.asc.slb.com
tkevans@eplrx7.es.duPont.com
lamour@maestro.mitre.org (Michael Lamoureux)
Randy Diffenderfer <rdiffe01@cad.gmeds.com>
hyder@niwot.scd.ucar.EDU (Paul Hyder)
poffen@sj.ate.slb.com (Russ Poffenberger)
amp19263@garfield (John R. Kilheffer)
Barry Margolin <barmar@Think.COM>
trinkle@cs.purdue.edu (Daniel Trinkle)
Christian Lawrence <cal@soac.bellcore.com>
Cheers,
Mark Sims
Mark Sims
President
MSI Professional Services, Inc.
1400 North Woodward Avenue
Suite 101
Bloomfield Hills, Michigan 48304
Phone: (313) 646-2582
FAX: (313) 642-2603
Email: marks@noc.hfh.edu
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:47 CDT