Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: sspfunk on February 11, 2004, 08:37:09 AM

Title: ext ip dhcp log
Post by: sspfunk 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
Title: ext ip dhcp log
Post by: mbachmann 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