Address Resolution Protocol (ARP) does exactly the opposite, I mean it transforms IP Addresses into their corresponding MAC Addresses, it uses the physical to send the packet and bring the attention of the remote NIC (Network Interface Card), it caches that information in the ARP table to avoid doing the query for each packet. ARP table's info is not persistent because as you can imagine IP addresses can change (i.e:DHCP)

What I'm trying to say is that there is no direct way to translate MAC into IP, unless you ping your entire network so you build the ARP table ( this is crazy and takes forever ) or use another mechanism like querying a router/switch for their entries ( they are short-lived too). Even more the entries in the ARP table are from your LAN, all other IP addresses behind the router will have router's MAC address


In reply to Re: Easy search on MAC address by bluescreen
in thread Easy search on MAC address by giomar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.