Find the answer to your Linux question:
Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie jnojr's Avatar
    Join Date
    Sep 2007
    Location
    San Diego, CA
    Posts
    117

    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.

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,746
    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:
    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.

  3. #3
    Linux Newbie jnojr's Avatar
    Join Date
    Sep 2007
    Location
    San Diego, CA
    Posts
    117
    OK... if his syntax is wrong, how do you get the IP associated with a given MAC without access to any switches?

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,746
    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:

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •