DHCP question

Robert Huff roberthuff at rcn.com
Thu Aug 24 21:06:12 UTC 2006

Walt Pawley writes:

>  >I need to monitor and record that IP address and initiate a
>  >series of processes if/when the IP address changes.
>  You could schedule a script that uses 'curl' or 'fetch' to
>  acquire the status page from the router and parse the upstream
>  IP address from it and compare it with a saved address.

	How about:

	netstat -rn -f inet | grep default | awk '{print $2}'

					Robert Huff

More information about the freebsd-questions mailing list