Detecting change of IP address on LAN

Is there any way to automatically detect the change of IP address of a host on a LAN and trigger some action?

I have a broadband router which runs a dhcp server which I don't have login access to, so hosts with IP addresses assigned by it have a limited lease time after which a different IP address is assigned.

Can I automatically detect a reassignment and perform some action if this is detected?
 
I have a broadband router which runs a dhcp server which I don't have login access to, so hosts with IP addresses assigned by it have a limited lease time after which a different IP address is assigned.
You generally get the same address. Unless there's only small pool and more machines wanting IP addresses.

That said, you can probably create a devd.conf(5) entry that'll trigger a script when an IP address is added/removed.

Code:
     IFNET     inet         ADDR_ADD   The network interface address added.
     IFNET     inet         ADDR_DEL   The network interface address removed.
devd.conf(5)
 
Back
Top