From owner-freebsd-questions@FreeBSD.ORG Sat Jun 19 22:11:52 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 8250116A4CE for ; Sat, 19 Jun 2004 22:11:52 +0000 (GMT) Received: from outmx007.isp.belgacom.be (outmx007.isp.belgacom.be [195.238.3.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id F031243D1D for ; Sat, 19 Jun 2004 22:11:51 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx007.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i5JMBoxW021887 for ; Sun, 20 Jun 2004 00:11:50 +0200 (envelope-from ) Received: from lori.mine.nu (65-23.244.81.adsl.skynet.be [81.244.23.65]) with ESMTP id i5JMBii7021846; Sun, 20 Jun 2004 00:11:45 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id 20F4F4E9; Sun, 20 Jun 2004 00:11:42 +0200 (CEST) Date: Sun, 20 Jun 2004 00:11:42 +0200 From: Geert Hendrickx To: Dave Message-ID: <20040619221142.GA5047@lori.mine.nu> References: <20040619143929.D6077@metafocus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040619143929.D6077@metafocus.net> User-Agent: Mutt/1.4.2i X-GPG-Key: http://www.win.ua.ac.be/~s005085/gnupgkey.txt X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en cc: freebsd-questions@freebsd.org Subject: Re: Disabling DHCP 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: Sat, 19 Jun 2004 22:11:52 -0000 On Sat, Jun 19, 2004 at 02:40:41PM -0700, Dave wrote: > > I want to turn DHCP on my router off. > How can I use FreeBSD to get an IP addresss from it? When the system > boots, it runs dhclient, which hangs for awhile before getting anything. > > What is the better way? Using a fixed IP, by adding defaultrouter="192.168.1.2" ifconfig_ed1="inet 192.168.1.210 netmask 255.255.255.0" to your /etc/rc.conf (be sure to substitute your device and the correct ip's), and listing the nameserver(s) in /etc/resolv.conf That way you won't need your DHCP-server anymore. GH