Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-2008, 06:23 PM
John Oliver
 
Posts: n/a
arping doesn't work

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
  #2 (permalink)  
Old 07-09-2008, 06:34 PM
pk
 
Posts: n/a
Re: arping doesn't work

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
  #3 (permalink)  
Old 07-10-2008, 07:50 PM
Moe Trin
 
Posts: n/a
Re: arping doesn't work

On Wed, 9 Jul 2008, in the Usenet newsgroup comp.os.linux.networking, in article
<slrng7a0g3.8sn.joliver@ns.sdsitehosting.net>, 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
  #4 (permalink)  
Old 07-10-2008, 10:06 PM
John Oliver
 
Posts: n/a
Re: arping doesn't work

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
  #5 (permalink)  
Old 07-11-2008, 08:26 AM
Pascal Hambourg
 
Posts: n/a
Re: arping doesn't work

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

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT. The time now is 10:36 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Car Insurance | Car insurance | Car Insurance | Remortgages



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109