5.4 / 6.0 wi0 and dhcp with closed network
brooks at one-eyed-alien.net
Thu Jan 5 18:15:26 PST 2006
On Wed, Dec 28, 2005 at 04:04:57PM -0400, JK wrote:
> On Wed, 28 Dec 2005 12:05:10 -0400
> "JK" <jdkullmann at aliencamel.com> wrote:
> >I cannot get this to work at startup time on 5.4
> >On 6.0 I put ifconfig_wi0="ssid mynet DHCP" into /etc/rc.conf and
> >that works. I end up on the closed 'mynet' network via a DHCP
> >On 5.4 neither that line nor other combinations in /etc/rc.conf of
> >ifconfig_wi0="ssid mynet"
> >dhclient wi0
> >work. I _can_ get up on 5.4 by booting and then manually doing
> >ifconfig wi0 ssid mynet
> >dhclient wi0
> >After dhclient receives the IP etc from the server the machine is up
> >How in the world do I do this in /etc/rc.conf ( or other files ) on
> >5.4 so it works automatically at startup time?
> Following myself up, the only way I could get this to work in 5.4 at
> startup time was to create a /etc/start_if.wi0 that contained
> ifconfig wi0 ssid mynet
> dhclient wi0
> and not put any ifconfig_XX commands into my /etc/rc.conf
> That seems pretty cheesey to me but it works. If anyone else has a
> cleaner way I'd love to know what it is.
/etc/start_if.* is the only option in 5.4. It is indeed lame, that's
why I wrote the better support in 6.0. You should be able to set
ifconfig_XX="DHCP" instead of running dhclient manually though.
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20060105/80d48314/attachment.bin
More information about the freebsd-net