Date: Thu, 11 Jul 2002 13:51:39 -0500 From: Mikel King <mikel@ocsinternet.com> To: nascar24 <nascar24@home.nl> Cc: net@FreeBSD.ORG Subject: Re: DHCP lease renewal Message-ID: <3D2DD3BB.2010506@ocsinternet.com> References: <01c001c221dd$38127d20$0200a8c0@winxp>
next in thread | previous in thread | raw e-mail | index | archive | help
Not sure if you've found this already. One thing I used to do on an older box was a simple cron job that ran a script which HUP'd the dhclient every so often thus effectively renewing the lease... If memory serves me it went something like.... #!/bin/sh kill -HUP `ps ax |awk '/dhclient/{print $1; exit}'` cheers, mikel nascar24 wrote: > Hallo, > > My FreeBSD 4.5-RELEASE machine is connected to the internet via a > cable connection. And when booting (or running dhclient) I get an IP > address. But when I have an IP address and my ISP wants to give me a > new IP address I doesn't go the way it should. Because I don't get the > new IP address, my machine continues to use the 'old' IP address. And > when that happens I get an angry phone call from my ISP, and they shut > me from internet for a day. > > So, how can I configure (dhclient.conf I guess) my machine so that it > accepts this new IP address. I thought I would configure my machine so > that it renews its lease every 10 hours. But I have read the man for > dhclient.conf, dhcp-options and dhclient but I still am puzzled. > > Gr. > > Marcel. > -- Cheers, Mikel +------------------------------------------+ Ok I'll go fsck my brain for a while as it's been a rather long night. +------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2DD3BB.2010506>