From owner-freebsd-questions Thu Aug 24 17:19: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from elmls01.ce.mediaone.net (elmls01.ce.mediaone.net [24.131.128.25]) by hub.freebsd.org (Postfix) with ESMTP id B050037B423 for ; Thu, 24 Aug 2000 17:19:05 -0700 (PDT) Received: from bugsbunny (ro04-24-131-177-229.ce.mediaone.net [24.131.177.229]) by elmls01.ce.mediaone.net (8.8.7/8.8.7) with SMTP id TAA24968; Thu, 24 Aug 2000 19:16:48 -0500 (CDT) From: "Chris Silva" To: "Nathaniel G H" , Subject: RE: DHCP "refresh" question Date: Thu, 24 Aug 2000 19:14:03 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <200008231928.MAA03243@mail2.bigmailbox.com> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here' what I did, it's not the best way I'm sure, but this works perfect for me ;) Oh, xl0 is MY nic, insert yours.... /etc/renew.dhcp dpid=`ps aux |grep "dhclient " |awk '{print $2}'` kill -9 ${dpid} /sbin/dhclient xl0 /etc/crontab # Kill and renew the DHCP settings for my cable modem 0 0,4,8,12,16,20 * * * root /etc/renew.dhcp #-----Original Message----- #From: owner-freebsd-questions@FreeBSD.ORG #[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Nathaniel G H #Sent: Wednesday, August 23, 2000 2:28 PM #To: freebsd-questions@FreeBSD.ORG #Subject: Re: DHCP "refresh" question # # #>> How can I fix this? Is there any way to tell the machine to #>> obtain a new address when there is no route to an external host? #> #>The easy way would be to kill the dhclient and restart it... # #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. # #Thanks, #NGH # # #------------------------------------------------------------ #Free email: http://BeMail.org/ #Free BeOS: http://free.be.com/ # # # # #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