Koozali.org: home of the SME Server

ext ip dhcp log

sspfunk

ext ip dhcp log
« on: February 11, 2004, 08:37:09 AM »
I have a cable modem to the Internet that is dhcp and it changes every once in a while
is there a log somewhere that would say when the ip changed?
or better yet a script that would email someone when the ip changed

tia

steve

mbachmann

ext ip dhcp log
« Reply #1 on: February 11, 2004, 09:27:08 AM »
Edit

/etc/ppp/ip-up

and enter at before the "exit 0":

echo $4 | mail -s "New IP Myserver" your_desired@
address.org