From owner-freebsd-questions@FreeBSD.ORG Wed Jun 16 07:30:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0041E16A4DA for ; Wed, 16 Jun 2004 07:30:33 +0000 (GMT) Received: from p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp (p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp [220.111.132.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACDC143D60 for ; Wed, 16 Jun 2004 07:30:25 +0000 (GMT) (envelope-from lukek@meibin.net) Received: (qmail 54898 invoked by uid 89); 16 Jun 2004 07:29:41 -0000 Received: from unknown (HELO ?192.168.10.8?) (192.168.10.8) by 192.168.20.5 with SMTP; 16 Jun 2004 07:29:41 -0000 Date: Wed, 16 Jun 2004 16:27:44 +0900 From: Luke Kearney To: Dave In-Reply-To: <20040615235429.P687@metafocus.net> References: <20040615235429.P687@metafocus.net> Message-Id: <20040616162429.FEEE.LUKEK@meibin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.01 cc: freebsd-questions@freebsd.org Subject: Re: DHCP: keep a lease forever? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 07:30:34 -0000 On Wed, 16 Jun 2004 00:02:32 -0700 (PDT) Dave spake thus: > > I got a simple problem. My local IP addresses keep changing (didn't have > this problem before until a firmware update), and I don't want them to. > I got these spammy winboxes that greedily race for to steal my FreeBSD's > lease. I'm using a simple 4-port linksys router here. It's configuration > is about useless. > > Let's say I wanted to be 192.168.1.170 for argument's sake. I turn > everything off (router + computers). Set my 'starting IP' to 170. Fire > the FreeBSD machine up first, let it get 170. Then I turn the dumb > winboxes on, and who cares what they have they arn't important. Like a > couple of days later, I'll type "ifconfig" and suddely I got 172 on my > FreeBSD box (192.168.1.172) instead of 170. I could turn DHCP off, but > then my dhclient takes really really really long to find the network (but > it does find it, eventually). How can I setup a more static system here > without the long wait for dhclient? Anything in dhclient.conf I can put > in there? I want to disable dhcp, but I need to figure out how to > efficiently get the connection going on, and basically, I havn't owned > FreeBSD in the pre-dhcp era, so I wouldn't know how. I would think that the best way to do this would be to add a static IP to your rc.conf file. It's pretty simple edit rc.conf and change the line which says ifconfig_yourinterface0="inet 192.168.1.1 netmask 255.255.255.0" changing the address to suit your situation. It might then also help if you alter the DHCP servers address range so that you don't accidentally get conflicts. HTH LukeK -- Luke Kearney