I dont know about Ubuntu, but with Debian and using dhcpclient, it is just to place a script in /etc/dhcp/dhclient-enter-hooks.d/ something like:Else if it is supposed to happen when te external interface is beeing initiated, place a script in /etc/network/if-up.d/ something like:Code:echo "${new_ip_address}" >> /some/where/my_fileAgain this is on a ddebian install, I dont know if Ubuntu provides the same functionality, but since it is derived from teh debian architecture it might.Code:echo "${IF_ADDRESS]" >> /some/where/my_file


Reply With Quote

Bookmarks