DHCP question

Walt Pawley walt at wump.org
Fri Aug 25 02:45:42 UTC 2006


At 5:03 PM -0400 8/24/06, Robert Huff wrote:

>>  >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}'

Wouldn't that just get his router's internal NAT address?
-- 

Walter M. Pawley <walt at wump.org>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97470
         541-672-8975


More information about the freebsd-questions mailing list