[Leaplist] dhcp & stale leases

Jason Boxman jasonb at edseek.com
Wed Nov 4 12:13:13 EST 2009


Jason Boxman wrote:
> Kevin Korb wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I have never used pump but most DHCP clients stay running so that they 
>> can
>> poll for a new lease whenever their existing lease expires.  Does pump
>> have a setting to do that?  If not are you married to pump?
> 
> Not married to it.  It's just pretty simple and lightweight.

Perhaps I'll try this instead, as pump will give iface status and when 
it's confused it seems to be 0.0.0.0 for all values:

if pump -si eth0 | grep 0.0.0.0 1>/dev/null ; then
   pump -ri eth0 ; pump -i eth0
fi

evie:~# pump -si eth0
Device eth0
      IP: 67.77.x.x
      Netmask: 255.255.248.0
      Broadcast: 67.x.x.255
      Network: 67.x.x.0
      Boot server 67.x.x.1
      Next server 0.0.0.0
      Gateway: 67.x.x.1
      Gateways: 67.x.x.1
      Nameservers: 209.26.88.31 204.215.43.3
      Renewal time: Wed Nov  4 12:50:33 2009
      Expiration time: Wed Nov  4 12:58:03 2009


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Leaplist mailing list