From owner-freebsd-questions@FreeBSD.ORG Thu May 24 12:41:31 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56A0F106564A for ; Thu, 24 May 2012 12:41:31 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1B08FC12 for ; Thu, 24 May 2012 12:41:30 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q4OCfUXO054077; Thu, 24 May 2012 06:41:30 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q4OCfUfC054074; Thu, 24 May 2012 06:41:30 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 24 May 2012 06:41:30 -0600 (MDT) From: Warren Block To: Lars Eighner In-Reply-To: Message-ID: References: <201205230534.q4N5YhcB083259@mail.r-bonomi.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 24 May 2012 06:41:30 -0600 (MDT) Cc: freebsd-questions@freebsd.org, Robert Bonomi Subject: Re: Connect to Clear hub modem 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, 24 May 2012 12:41:31 -0000 On Thu, 24 May 2012, Lars Eighner wrote: > On Wed, 23 May 2012, Warren Block wrote: > >> On Wed, 23 May 2012, Lars Eighner wrote: >> >>> Whoops! By imaginary, I meant not really on the internet, but in >>> 198.168.x.x block reserved for private netting. >>> >>> This combination of things seems to work in rc.conf: >>> >>> network_interfaces="lo0 re0" >> >> That is normally not needed. >> >>> ifconfig="DCHP" >>> ifconfig_re0="inet 192.168.15.2 netmask 255.255.255.0" >> >> These are variable assignments, and the second line overwrites the value >> assigned by the first. The first alone is preferable because DHCP will do >> other setup, like the route and resolve.conf. > > > Actually, it seems DCHP won't do it alone. But doing without DCHP does > work. Since I gather DCHP && the other stuff can introduce contradictions, > I'm doing without DCHP until I understand this better. Looking at the code above again, there's an error. The first line is not going to do anything (I think, rc.conf has surprised me before). It should have the interface name. So either of these two lines should work: ifconfig_re0="DHCP" or ifconfig_re0="inet 192.168.15.2 netmask 255.255.255.0" If both were in rc.conf, the second would overwrite the earlier one. I generally use "SYNCDHCP" to be sure a lease is obtained before the rc scripts go on.