Detecting a change of IP address in Linux

Posted by Joel Holdsworth on Stack Overflow See other posts from Stack Overflow or by Joel Holdsworth
Published on 2010-04-29T16:18:19Z Indexed on 2010/04/29 21:07 UTC
Read the original article Hit count: 215

Filed under:
|
|

Does anyone know a way to detect a change of IP address in Linux. Say I have dhcpcd running, and it assigns a new IP address, is there a way I can get a notification when it changes?

inotify on something in /proc/net/ ?

© Stack Overflow or respective owner

Related posts about linux

Related posts about dhcp