How to find IP address from mac address by spoofed request to DHCP server?
3
votes
3
answers
4782
views
EDIT the selected answer solves the broader problem that I was trying to solve, which is "Given selected mac addresses, how do I efficiently find each mac addresses corresponding IP address on the local network?".
ORIGINAL:
I need to write a program to find out the IP addresses of machines on my local network.
I have the mac address of the machines.
Given that DHCP servers return the same IP address for a given mac address, would it be possible somehow to send a DHCP request to the server, insert the known mac address, and capture the response, which presumably has the correct IP address in it for that mac address?
FURTHER INFORMATION:
I tried arpwatch and found it to be unreliable. Much more satisfactory was addrwatch https://github.com/fln/addrwatch
Asked by Duke Dougal
(1135 rep)
Feb 19, 2018, 04:30 PM
Last activity: Jun 7, 2021, 05:16 PM
Last activity: Jun 7, 2021, 05:16 PM