From owner-freebsd-net Thu Jul 11 11:51:47 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45BB737B400 for ; Thu, 11 Jul 2002 11:51:45 -0700 (PDT) Received: from ra.upan.org (ra.upan.org [204.107.76.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8937B43E31 for ; Thu, 11 Jul 2002 11:51:43 -0700 (PDT) (envelope-from mikel@ocsinternet.com) Received: from ocsinternet.com ([10.0.0.140]) by ra.upan.org (8.12.3/8.11.6) with ESMTP id g6BIpgqj046221; Thu, 11 Jul 2002 14:51:42 -0400 (EDT) (envelope-from mikel@ocsinternet.com) Message-ID: <3D2DD3BB.2010506@ocsinternet.com> Date: Thu, 11 Jul 2002 13:51:39 -0500 From: Mikel King User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: nascar24 Cc: net@FreeBSD.ORG Subject: Re: DHCP lease renewal References: <01c001c221dd$38127d20$0200a8c0@winxp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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