Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page arping doesn't work...
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 07-09-2008   #1 (permalink)
jnojr
Just Joined!
 
jnojr's Avatar
 
Join Date: Sep 2007
Posts: 62
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.
jnojr is offline   Reply With Quote
Old 07-09-2008   #2 (permalink)
HROAdmin26
Linux User
 
Join Date: Nov 2007
Posts: 489
An ARP request is a broadcast to *find* the MAC address when the IP address is known.

Thus, usage is:

Code:
arping -I eth0 <ip_address>
Code:
arping -I eth0 10.66.91.5
ARPING 10.66.91.5 from 10.66.91.240 eth0
Unicast reply from 10.66.91.5 [00:C0:9F:3D:35:01]  0.767ms
Unicast reply from 10.66.91.5 [00:C0:9F:3D:35:01]  0.758ms
Unicast reply from 10.66.91.5 [00:C0:9F:3D:35:01]  0.765ms
Sent 3 probes (1 broadcast(s))
Received 3 response(s)
Address Resolution Protocol

And further info:
Quote:
There are two arping implementations. One is part of Linux iproute2, is Linux-only, and cannot currently ask who has what MAC address. The other arping implementation by Thomas Habets uses libpcap and libnet to be platform independent, and works on lots of UNIX-based OSs and even Windows.
HROAdmin26 is offline   Reply With Quote
Old 07-09-2008   #3 (permalink)
jnojr
Just Joined!
 
jnojr's Avatar
 
Join Date: Sep 2007
Posts: 62
OK... if his syntax is wrong, how do you get the IP associated with a given MAC without access to any switches?
jnojr is offline   Reply With Quote
Old 07-09-2008   #4 (permalink)
HROAdmin26
Linux User
 
Join Date: Nov 2007
Posts: 489
Quote:
Originally Posted by HROAdmin26 View Post
And further info:

There are two arping implementations. One is part of Linux iproute2, is Linux-only, and cannot currently ask who has what MAC address. The other arping implementation by Thomas Habets uses libpcap and libnet to be platform independent, and works on lots of UNIX-based OSs and even Windows.
From that page:

Quote:
Arping from T.Habets:

arping2 00:01:80:38:F7:4C
arping2 192.168.39.120
And from that page, an external link.

Note: I don't know what OS/distro you're using and I don't know *what* packages you have installed, etc. If your current arping utility doesn't support querying by MAC, get T. Habets'. Or use some other network utility. All of this info was found via Google.
HROAdmin26 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 05:57 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0