Date: Thu, 5 Jan 2006 18:15:20 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: JK <jdkullmann@aliencamel.com> Cc: freebsd-net@freebsd.org Subject: Re: 5.4 / 6.0 wi0 and dhcp with closed network Message-ID: <20060106021520.GG31301@odin.ac.hmc.edu> In-Reply-To: <web-20083515@aliencamel.com> References: <web-20075673@aliencamel.com> <web-20083515@aliencamel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--reI/iBAAp9kzkmX4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 28, 2005 at 04:04:57PM -0400, JK wrote: > On Wed, 28 Dec 2005 12:05:10 -0400 > "JK" <jdkullmann@aliencamel.com> wrote: > >I cannot get this to work at startup time on 5.4 > > > >On 6.0 I put ifconfig_wi0=3D"ssid mynet DHCP" into /etc/rc.conf and=20 > >that works. I end up on the closed 'mynet' network via a DHCP=20 > >address. > > > >On 5.4 neither that line nor other combinations in /etc/rc.conf of > > > >ifconfig_wi0=3D"DHCP" > >ifconfig_wi0=3D"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=20 > >fine. > > > >How in the world do I do this in /etc/rc.conf ( or other files ) on=20 > >5.4 so it works automatically at startup time? > >_____________________________________ >=20 > Following myself up, the only way I could get this to work in 5.4 at=20 > startup time was to create a /etc/start_if.wi0 that contained >=20 > ifconfig wi0 ssid mynet > dhclient wi0 >=20 > and not put any ifconfig_XX commands into my /etc/rc.conf >=20 > That seems pretty cheesey to me but it works. If anyone else has a=20 > 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=3D"DHCP" instead of running dhclient manually though. -- Brooks --=20 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 --reI/iBAAp9kzkmX4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDvdK4XY6L6fI4GtQRAk0uAKC3TZxgnNJwiukgPtoS6mx2WHG9zACfQ7dy u5glk13tRLmqC8hvdntnfnY= =dbKc -----END PGP SIGNATURE----- --reI/iBAAp9kzkmX4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060106021520.GG31301>