On 12 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed). com>,
(E-Mail Removed)
wrote:
>1) broadcast ping (programmatically horrible as every host on the
>network will respond)
That also depends on the O/S - some like late versions of windoze won't
respond to a broadcast ping - and configuration - some people firewall
broadcast pings, some ignore pings entirely.
>2) inverse arp lookup
That may be a problem
>1) Does linux support the inverse arp protocol, as various resources
>I've seen indicate it is primarily used for frame relay? If so could
>you direct me to the appropriate resources as I've been unable to
>determine if linux supports this.
[compton ~]$ whatis rarp
rarp (8) - manipulate the system RARP table
[compton ~]$
0903 A Reverse Address Resolution Protocol. R. Finlayson, T. Mann,
J.C. Mogul, M. Theimer. June 1984. (Format: TXT=9345 bytes) (Also
STD0038) (Status: STANDARD)
The problem with RARP is that it requires a server that has a list of
MAC address to IP addresses. Unfortunately, there is no equivalent of
ARP going in the opposite direction (ARP who-has 00:20:AF:56:9D:EE tell
192.0.2.11 at 08:00:20:EA:81:4A). Sorry.
>2) What other methods could I use to obtain this information?
The way the RARP server works is an /etc/ethers file that lists the MAC
address and hostname (or IP address or both).
Another method would be to use a technique like hping2 to ping the
MAC address.
If ping is blocked, and you can send raw Ethernet frames, send a packet
of some kind (example, TCP packet to some high port number with a b0rked
IP address) and see if the peer will reply with an RST, but containing
the correct IP address.
"Be inventive" ;-)
Old guy