From owner-freebsd-questions Thu Jan 4 20:15:39 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 20:15:35 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.hcvlny.cv.net (mx1.hcvlny.cv.net [167.206.112.76]) by hub.freebsd.org (Postfix) with ESMTP id 3986E37B400 for ; Thu, 4 Jan 2001 20:15:35 -0800 (PST) Received: from s1.optonline.net (s1.optonline.net [167.206.112.6]) by mx1.hcvlny.cv.net (8.10.2/8.10.2) with ESMTP id f054FV516756; Thu, 4 Jan 2001 23:15:31 -0500 (EST) Received: from optonline.net (ool-18be012f.dyn.optonline.net [24.190.1.47]) by s1.optonline.net (8.10.2/8.10.2) with ESMTP id f054FVi12949; Thu, 4 Jan 2001 23:15:31 -0500 (EST) Sender: gsam@optonline.net Message-ID: <3A554A62.6486A1E@optonline.net> Date: Thu, 04 Jan 2001 23:15:31 -0500 From: trini0 X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: dmaddox@sc.rr.com, FreeBSD Questions Subject: Re: restarting or renewing dhclient References: <3A54C701.A836F5DA@optonline.net> <20010104142350.A9296@cae88-102-101.sc.rr.com> <3A54E446.A73FB7D@optonline.net> <20010104225349.A1207@cae88-102-101.sc.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Don't know. Anyway, the script works and I set cron to execute it a 6am every day. Ill see how that goes. Thanks for your insight. > Hmmm... That's not how DHCP is *supposed* to work. My IP stays the > same for long periods too, but when it changes, it just does :) with > no ill-effects. Maybe you have an issue with your ISP here... > > On Thu, Jan 04, 2001 at 03:59:50PM -0500, trini0 wrote: > > Ever since I set the network up 4-5 months ago, Ive had 1 ip address until > > this morning. Even through all the reboots that I put this box through, the > > ip address stayed the same. This morning on the console, there was > > "dhclient: send packet: No route to host" and it repeated itself about 9-10 > > times at different times. I rebooted and I now have a new ip address and > > gateway ip. No problem, thats how dhcp works, I just didn't know how or if > > dhclient refreshes itself. The above error happened about 4:30am, and I > > rebooted about 11am. I figured out that I could kill -9 dhclient.pid and > > restart it by dhclient ed0. I just got to figure out how to do it in script > > form so that I could have cron run it maybe once a day. It seems to me that > > its a crude way to do it, but it seems to work. If anyone want to chime in > > feel free to correct me. > > Thanks > > > > "Donald J . Maddox" wrote: > > > > > Dhclient runs as a daemon and automatically renews the lease when it > > > expires, etc. What exactly went wrong with your network? > > > > > > On Thu, Jan 04, 2001 at 01:54:57PM -0500, trini0 wrote: > > > > Hey all. I have had my box serving my lan on a cable modem with the > > > > same external ip address, until this morning. I had to restart the box > > > > in order to get the network going again. I tried looking in man 5 > > > > dhclient.conf for clues to see if I could say restart/refresh dhclient > > > > once a day. I came across a renew statement, but it seems limited in > > > > its time field format, unlike cron's. Does anyone know of a way to > > > > flush, restart/renew dhclient. I know about isc mailing list, I figured > > > > I'd ask here before subscribing with them, just for one ?. > > > > Thanks > > > > > > > -- > > > > _____________________________ > > | trini0 | > > | | > > / ) | Systems Administrator | > > / / | Network Engineer | > > ( ( | email ==> | > > (((\ \> |/ ) trini0@optonline.net | > > (\\\\ \_/ /_________________________| > > \ / > > \ _/ > > / / > > / / > > > > > > > > > > > > > > > > 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 -- _____________________________ | trini0 | | | / ) | Systems Administrator | / / | Network Engineer | ( ( | email ==> | (((\ \> |/ ) trini0@optonline.net | (\\\\ \_/ /_________________________| \ / \ _/ / / / / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message