On Wed, Jul 9, 2008 at 5:49 PM, Randall <[EMAIL PROTECTED]> wrote:
> John:
>
> I found the arping-2.06 package on the internet, attempted to compile, but saw
> that it was missing a libnet.h header so I checked and found that that
> library was not installed on my Suse 11.0 x86_64 system. I installed libnet
> (and debug library also), then compiled without a hitch.
>
> However, after trying this, I saw, using wireshark (ethereal) that just a ping
> was being issued to destination 255.255.255.255, but nothing answered, even
> when I had issued a specific MAC address
>
> Then I read up on Suse 11.0 iputils package and found that they have an
> arping, however this command works backwards and expects you to know the IP
> address, then gives you the MAC address.
>
> There apparently is confusion here.
>
> I believe the command we really want is "arping MAC" (and options such as -i
> eth0 for the interface, etc) and the reply to be MAC + IP
>
> I will keep digging deeper as the arping-2.06 package doesn't seem to work
> either on my local LAN, although I know that my D-Link router has it okay,
> because I am using MAC verification, and every so often the router asks "Who
> has MAC?" and my machines answer back.
>
For what it's worth, arping(8) seems to have come to me as part of
CentOS 5. If I invoke it in a straightforward way, I get answers
like:
$ sudo /sbin/arping whimbrel
[sudo] password for cdl:
ARPING 192.168.1.20 from 192.168.1.15 eth0
Unicast reply from 192.168.1.20 [00:03:93:BB:54:06] 0.918ms
So it seems to return a MAC address from a known IP address.
On the other hand, you can learn MAC addresses from reading the ARP cache.
$ sudo /sbin/arp -a
whimbrel (192.168.1.20) at 00:03:93:BB:54:06 [ether] on eth0
? (192.168.1.1) at 00:14:6C:3B:9C:F2 [ether] on eth0
This has shown me the MAC addresses for two local machines, one of
which is my router which doesn't have a hostname.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list