CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Mac address to IP

 



Harfish
New User

Feb 6, 2013, 5:33 PM

Post #1 of 2 (678 views)
Mac address to IP Can't Post

Hi there

I'm in the process of coding up a piece of middleware to take information from our wireless lan controller and pass it up to our web filter. I'm currently a bit stuck because the WLC syslog contains user names and MAC addresses but no IP addresses.

How can I quickly turn MAC addresses into IP addresses so that I can pass which username belongs to which IP up to the web filter?

This script runs on a Debian Linux box so I'm happy to hand the MAC off to an external program. I had considered using arping but concluded that would likely be too slow.

Thanks


FishMonger
Veteran / Moderator

Feb 7, 2013, 6:16 AM

Post #2 of 2 (660 views)
Re: [Harfish] Mac address to IP [In reply to] Can't Post


Quote
How can I quickly turn MAC addresses into IP addresses


You can't.

MAC addresses and IP addresses don't represent the same thing, so you can't turn one into the other.

However, if you're on the same LAN you can use ARP to lookup the mapping between the addresses.

Another option, assuming all devices are using DHCP, you could check the dhcp log to find the mapping.


(This post was edited by FishMonger on Feb 7, 2013, 6:19 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives