From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 21:06:14 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 E2DA21065670 for ; Thu, 12 Feb 2009 21:06:14 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 489BA8FC21 for ; Thu, 12 Feb 2009 21:06:13 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so551580ywt.13 for ; Thu, 12 Feb 2009 13:06:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ODXsPfe3AHMdbGBpGLuP6e8Qj078AoU2XdUK4fwMzZs=; b=LNndkdacqwyU4X0G03ZG6/qucHYBaegHyyDafeYTtggs8ucfAe4QJXGzhCkvG7cCI2 iSAKswxsQ3rvAZuIZ2mYKYcnEgLYI/u7bL1qBp3pujb4j8ecFz2KAgUQc2qq1Fg4K5Rb Fsq/wjbBIiwOATfey2BcYVp6wGiuH/h2UgfYE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Ss36/NHj/n73ldZJj1IHL9rZCitN+LxKW6kOZGaK/a+33xgDKglu6dMbW822PoXJvf lkCTTf+yHXnl3HKUPWpRTr4gU7Lg409eApGfZaRFJMbjySZ1A8Xuj3vJRQgbuEyOTL9w ZSczgkWAW3gtW8wimL9uRfQ5SXqss9x5g1L7k= Received: by 10.90.83.2 with SMTP id g2mr700485agb.79.1234472773364; Thu, 12 Feb 2009 13:06:13 -0800 (PST) Received: from ?216.16.29.53? (host-53.216-16-29.iw.net [216.16.29.53]) by mx.google.com with ESMTPS id 38sm926248aga.35.2009.02.12.13.06.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Feb 2009 13:06:12 -0800 (PST) Message-ID: <49948F42.4090201@gmail.com> Date: Thu, 12 Feb 2009 15:06:10 -0600 From: Adam Vandemore User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: FreeBSD Questions References: <49947FC4.4000400@diamondbox.dk> In-Reply-To: <49947FC4.4000400@diamondbox.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 12 Feb 2009 21:06:15 -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 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 > Is there a reason you don't set /etc/resolv.conf to static nameservers as well? Also does not fixed-address lease give you what you want? -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610