Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How to convert MAC address to IP address ?

by swaroop (Beadle)
on Jun 28, 2005 at 01:10 UTC ( [id://470436]=perlquestion: print w/replies, xml ) Need Help??

swaroop has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

How do I convert MAC address ( ethernet ) to IP address in perl script.

THANKS,
SWAROOP
  • Comment on How to convert MAC address to IP address ?

Replies are listed 'Best First'.
Re: How to convert MAC address to IP address ?
by davidrw (Prior) on Jun 28, 2005 at 01:21 UTC
Re: How to convert MAC address to IP address ?
by tlm (Prior) on Jun 28, 2005 at 01:20 UTC
Re: How to convert MAC address to IP address ?
by kaif (Friar) on Jun 28, 2005 at 04:28 UTC

    Although it might be clear, I think it should be stated for those who do not know: the MAC address of a network card is relatively fixed by the hardware (disregarding spoofing and such), whereas an IP address can vary greatly, based on the network, DHCP, and other factors. Thus, there is no way to simply convert from a MAC address to an IP address with no further information.

    But of course, you probably have more information. In that case, see the referenced nodes in the above replies.

      Download angry ip scanner, select the extra column MAC Address in the options and do a ping sweep of your network, this is the easiest way to do it.
Re: How to convert MAC address to IP address ?
by rjsaulakh (Beadle) on Jun 28, 2005 at 05:07 UTC

    swaroop i think what your trying to do is totally different from the what help your seeking. its not possible that given a mac address you can get the ip address from it . you can get an ip address binded to a mac-address or nic address as you may say, regarding this there is lot of info already provided my monks

    hope this helps

Re: How to convert MAC address to IP address ?
by Khen1950fx (Canon) on May 21, 2008 at 02:52 UTC
    For something a little different, try downloading pfacter to your cwd, then run perl pfacter macaddress ipaddress. Then run perl pfacter for a look at the total picture.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://470436]
Approved by davidrw
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-23 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found