Question:
How can I detect if a host changes its IP address in the network? IP addresses are statically assigned.?
Narok
2015-07-28 09:57:15 UTC
Is there a free tool for such kind of detection in real time.

I have two ideas at the moment.

1.)Fetch mac and ip address table using snmp and compare them somehow in an automated way.
2.)Use nmap script. Have no idea about this at the moment.

Note: Please stick to the question and dont give ideas of implementing DHCP etc..

Thankyou :)
Five answers:
BigE
2015-07-28 11:27:43 UTC
If you allow ping response and you are on the same network, you can write a script that simply:

ping the host (short 2 packet)

if response, inspect arp table for entry.



You can prebuild the arp table with ip address and Macs.



If you want a monitor AND do this, you can run nagios. It has a contributed script that checks the hosts mac address, you would need to encode the result, the mac for each host. It does what you think, an arp table lookup.



Nagios runs on Linux and Windows (although I've never run it on Windows).



Method 1 would work fine. Perl has both the Net::SNMP, but I believe there is not standard for where that info is located. You probably want (in Cisco) the mac-address table and not the arp table. You can also just use snmpwalk to get the info and write your own script around it.
bluemazdatruck1995
2015-07-28 10:08:49 UTC
Spiceworks
anonymous
2015-07-28 22:07:52 UTC
id just dig through the dhcp logs and see what requests what based on mac address,
anonymous
2015-07-29 09:07:44 UTC
Dynamic DNS is the topic to look up.
Narok
2015-07-28 10:18:05 UTC
I searched for spiceworks but there is no such feature in it.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...