From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 20:19:28 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 33E1E1065673 for ; Thu, 12 Feb 2009 20:19:28 +0000 (UTC) (envelope-from mailinglist@diamondbox.dk) Received: from csmtp1.b-one.net (csmtp1.one.com [195.47.247.21]) by mx1.freebsd.org (Postfix) with ESMTP id EF2AD8FC18 for ; Thu, 12 Feb 2009 20:19:26 +0000 (UTC) (envelope-from mailinglist@diamondbox.dk) Received: from diamond.diamondbox.dk (unknown [77.215.199.3]) by csmtp1.b-one.net (Postfix) with ESMTP id 214DC1BC0032F for ; Thu, 12 Feb 2009 21:00:03 +0100 (CET) Message-ID: <49947FC4.4000400@diamondbox.dk> Date: Thu, 12 Feb 2009 21:00:04 +0100 From: Nikolaj Thygesen Organization: diamondbox.dk User-Agent: Thunderbird 2.0.0.19 (X11/20090124) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Thu, 12 Feb 2009 20:19:28 -0000 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 looking at the /etc/dhclient.conf man pages, but they don't seem to help. I can do it from rc.conf like: ifconfig_em0="inet 1.2.3.4" but then I loose all the other dhcp parameters like dns and stuff. Is it really that hard??? thanks - Nikolaj