Networking Forums

Networking Forums > Computer Networking > Linux Networking > arping doesn't work

Reply
Thread Tools Display Modes

arping doesn't work

 
 
John Oliver
Guest
Posts: n/a

 
      07-09-2008, 06:23 PM
I got an email from a user saying that he used to be able to (a long
time ago)

arping -I eth0 00:1a:64:c2:cg:5a

and get the IP address of the MAC. Now, he can't. I've tried on a couple
of different Linux systems, and it doesn't work for me, either. Anyone
know what's up with this? The man page doesn't help... it seems to
indicate that the above should work just fine.

--
* John Oliver http://www.john-oliver.net/ *
 
Reply With Quote
 
 
 
 
pk
Guest
Posts: n/a

 
      07-09-2008, 06:34 PM
On Wednesday 9 July 2008 20:23, John Oliver wrote:

> I got an email from a user saying that he used to be able to (a long
> time ago)
>
> arping -I eth0 00:1a:64:c2:cg:5a
>
> and get the IP address of the MAC. Now, he can't. I've tried on a couple
> of different Linux systems, and it doesn't work for me, either. Anyone
> know what's up with this? The man page doesn't help... it seems to
> indicate that the above should work just fine.


As I understand it, since you're doing ARP, you should supply an IP address,
not a MAC address.

 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      07-10-2008, 07:50 PM
On Wed, 9 Jul 2008, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed)>, John Oliver wrote:

>I got an email from a user saying that he used to be able to (a long
>time ago)
>
>arping -I eth0 00:1a:64:c2:cg:5a


I'm going to guess that's two typ0s for the price of one - the option
is a lower-case i, and while 00:1a:64: is an IBM prefix, the 'g' is
not a possible character in the address.

>and get the IP address of the MAC. Now, he can't.


What happens - does the computer catch fire or something?

>I've tried on a couple of different Linux systems, and it doesn't
>work for me, either.


[compton ~]# arping -c 3 -i eth0 08:00:20:d2:f9:33
ARPING 08:00:20:d2:f9:33
60 bytes from 192.0.2.102 (08:00:20:d2:f9:33): icmp_seq=0 time=2.618 msec
60 bytes from 192.0.2.102 (08:00:20:d2:f9:33): icmp_seq=1 time=849.009 usec
60 bytes from 192.0.2.102 (08:00:20:d2:f9:33): icmp_seq=2 time=886.917 usec

--- 08:00:20:d2:f9:33 statistics ---
3 packets transmitted, 3 packets received, 0% unanswered
[compton ~]# exit
[compton ~]$

>Anyone know what's up with this? The man page doesn't help... it seems
>to indicate that the above should work just fine.


What happens - does the computer catch fire or something? Have you
tried to use a packet sniffer to see what is going out over the line?
Are you using a switched network (as opposed to a hub or coax)?

Old guy
 
Reply With Quote
 
John Oliver
Guest
Posts: n/a

 
      07-10-2008, 10:06 PM
On Wed, 9 Jul 2008 20:23:00 +0200 (CEST), John Oliver wrote:
> I got an email from a user saying that he used to be able to (a long
> time ago)
>
> arping -I eth0 00:1a:64:c2:cg:5a
>
> and get the IP address of the MAC. Now, he can't. I've tried on a couple
> of different Linux systems, and it doesn't work for me, either. Anyone
> know what's up with this? The man page doesn't help... it seems to
> indicate that the above should work just fine.


For the archives... arping has apparently forked, and the one that ships
with iputils doesn't do this any more. I was directed to:

http://www.habets.pp.se/synscan/prog...hp?prog=arping

I haven't heard back from my user, so either it worked and made him
happy, or it made his computer eloctrocute him. Either way, I'm good
:-)

--
* John Oliver http://www.john-oliver.net/ *
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      07-11-2008, 08:26 AM
Hello,

John Oliver a écrit :
> I got an email from a user saying that he used to be able to (a long
> time ago)
>
> arping -I eth0 00:1a:64:c2:cg:5a
>
> and get the IP address of the MAC. Now, he can't. I've tried on a couple
> of different Linux systems, and it doesn't work for me, either. Anyone
> know what's up with this? The man page doesn't help... it seems to
> indicate that the above should work just fine.


When the target is a MAC address, it appears that arping sends to that
MAC address an ICMP echo (ping) request directed to the IP limited
broadcast address (255.255.255.255). However recent Linux kernels have
the /proc/sys/net/ipv4/ignore_icmp_echo_ignore_broadcasts sysctl enabled
by default, so they won't reply unless it is explicitly disabled.
Besides, the iptables ruleset on the target host may drop broadcast (or
even all) ping requests.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!!! my wireless doesn't work at all!! Wireless5678 Wireless Internet 2 12-05-2007 02:57 AM
PPPoE doesn't work Bartlomiej F. Tajchman Linux Networking 10 11-25-2007 01:47 AM
apt-get doesn't work Fab Linux Networking 2 03-11-2007 02:20 PM
NIC doesn't work SGNOME Windows Networking 3 01-14-2004 01:41 PM
Re: TCP/IP doesn't work on LAN Steve Winograd [MVP] Windows Networking 2 07-14-2003 09:09 PM



1 2 3 4 5 6 7 8 9 10 11