From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 01:14:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62B4A106566B for ; Fri, 13 Feb 2009 01:14:53 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id F26698FC0A for ; Fri, 13 Feb 2009 01:14:52 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: (qmail 747 invoked by uid 89); 13 Feb 2009 01:15:52 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by v6.ibctech.ca with ESMTPA; 13 Feb 2009 01:15:52 -0000 Message-ID: <4994C983.20607@ibctech.ca> Date: Thu, 12 Feb 2009 20:14:43 -0500 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Nikolaj Thygesen References: <49947FC4.4000400@diamondbox.dk> In-Reply-To: <49947FC4.4000400@diamondbox.dk> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Assigning static ip address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 01:14:53 -0000 Nikolaj Thygesen wrote: > Hi list, > > I've been experimenting and googling for hours w/ no luck. All I want > to do is run dhcp and then replace the ip address of the interface with > a new static ip afterwards. I've been following this thread all day, but I still don't understand exactly what you are trying to accomplish. >From what I understand (and correct me if I'm wrong): - you are working on a FreeBSD host system - you have a DHCP server on the network, but it is not on this host - you want to use all of the DHCP assigned parameters on the host, but you want to have a static IP on the host you are working on that is different than the one assigned to you If that is correct, then you really only have two options: - do an #ifconfig, and in the configuration on the DHCP server, specify a directly assigned IP address to your MAC address. This way, DHCP server will feed you the same 'static' (aka permanent lease) address to you, and will also provide you with all other configuration parameters, or; - do not configure the IP address on the host via rc.conf. Let dhclient do its job, and have the system run a script at bootup with the requirement that 'network' setup is done, and that will set ONLY the IP address. It would help if you could specify what platform the DHCP server is running on, and whether you have control of it or not. It is important that you don't set a static IP address on your host that the DHCP server has in its lease pool. If you do, it may/will cause IP conflicts on the network. Steve