Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 06:41:30 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Lars Eighner <luvbeastie@larseighner.com>
Cc:        freebsd-questions@freebsd.org, Robert Bonomi <bonomi@mail.r-bonomi.com>
Subject:   Re: Connect to Clear hub modem
Message-ID:  <alpine.BSF.2.00.1205240637120.53872@wonkity.com>
In-Reply-To: <alpine.BSF.2.00.1205240645550.1335@abbf.ynefrvtuareubzr.pbz>
References:  <201205230534.q4N5YhcB083259@mail.r-bonomi.com> <alpine.BSF.2.00.1205230615320.52159@abbf.6qbyyneqvnyhc.pbz> <alpine.BSF.2.00.1205230804170.47816@wonkity.com> <alpine.BSF.2.00.1205240645550.1335@abbf.ynefrvtuareubzr.pbz>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1205240637120.53872>