in reply to mac to IP address?

You do realize these aren't exactly the same thing, right?

Want to do this for a machine other than your own? This is doable if you own the DHCP server or the router, but it depends on what technology you are using.

For just your computer, run 'arp -a'. There are no doubt Perl modules for this, but it's darn trivial enough to parse the output of arp or ifconfig -- info available on Google.

Replies are listed 'Best First'.
Re: Re: mac to IP address?
by parkprimus (Sexton) on Jan 23, 2004 at 15:05 UTC
    flyingmoose is right. The mac address and ip address are two different things that work on different layers of the OSI model. There are ways to determine what mac address is associated with an ip address but then again you can run into problems like recieving a mac address from a switch or hub. Why do you want to do this anyway?