From owner-freebsd-questions Thu Aug 24 13:35:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from winconx.com (ns1.winconx.net [208.60.80.2]) by hub.freebsd.org (Postfix) with SMTP id 1B58837B422 for ; Thu, 24 Aug 2000 13:35:19 -0700 (PDT) Received: (qmail 44043 invoked from network); 24 Aug 2000 20:37:05 -0000 Received: from dhcp01.winconx.net (HELO travis) (208.60.80.32) by ns1.winconx.net with SMTP; 24 Aug 2000 20:37:05 -0000 Message-ID: <04a001c00e0a$e41c5de0$20503cd0@travis> From: "Travis Leuthauser" To: References: <200008231928.MAA03243@mail2.bigmailbox.com> <20000824202800.A3791@diskfarm.firehouse.net> Subject: Re: DHCP "refresh" question Date: Thu, 24 Aug 2000 15:35:50 -0500 Organization: WinConX Online, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What about writing a script to run say every five minutes which pings the next upstream router and if it returns a "no route to host", assume the connection has gone sour and HUP the dhclient? Just a thought, I personally couldn't write a script to do it, but I'm sure it's not all that hard to do. Travis Leuthauser Network Administrator WinConX Online, Inc. ----- Original Message ----- From: "Alan Clegg" To: "Nathaniel G H" Cc: Sent: Thursday, August 24, 2000 3:28 PM Subject: Re: DHCP "refresh" question > Unless the network is lying to me again, Nathaniel G H said: > > > That is quite obvious, and very simple... but it requires human > > intervention. I was trying to find out if there is a way to do > > this automatically. It needs to happen when the DHCP address is > > no longer valid, but the lease time has not expired. > > How is a daemon able to determine that the address is no longer valid? > > It would be quite simple enough to do a: > > 'killall -HUP dhclient' > > When you knew the address went sour. > > AlanC > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message