Click to See Complete Forum and Search --> : Getting IP Addy from MAC address


The Linux Kid
03-02-2004, 04:01 PM
Hi everyone,

Is there anyway that I can get the IP address of a computer by typing in a MAC address? My school really wants to know how. I told them to use their DHCP server, but they told me that they are using static IP's. How stupid. Anyway, any help is appreciated.

Also I have access to Mac OS9, OSX, Linux and doze boxes to install this on.

Thanks in advance,

The Linux Kid

ph34r
03-02-2004, 04:15 PM
In Windows, nbtstat -A ip.add.re.ss will show the netbios name, and the last line of output is the MAC address... so maybe a script that will cycle thru all your IPs and run the nbtstat program and collect the output would work. That will give you a list of MAC addys and the IPs for them.

EnigmaOne
03-02-2004, 04:21 PM
I was thinking along the same lines on a Linux machine.
Outside of checking the arp cache, which will leave holes; script a sequence of pings; or just run nmap on the subnet, redirecting the output to a file.

Some windoze machines will hang or reboot on the nmap run, but it's not like anyone will notice anything unusual about that. ;)

Gertrude
03-02-2004, 06:05 PM
http://www.habets.pp.se/synscan/programs.php?prog=arping

heckle
03-02-2004, 06:40 PM
Are you using switches on the school network? If so, depending on the switch type, you can collect the information from the CAM/ARP table in the switch.