From owner-freebsd-net@FreeBSD.ORG Fri Jan 6 02:15:26 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DCB716A41F for ; Fri, 6 Jan 2006 02:15:26 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 130B743D45 for ; Fri, 6 Jan 2006 02:15:25 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k062FKwk012642; Thu, 5 Jan 2006 18:15:20 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k062FKYD012641; Thu, 5 Jan 2006 18:15:20 -0800 Date: Thu, 5 Jan 2006 18:15:20 -0800 From: Brooks Davis To: JK Message-ID: <20060106021520.GG31301@odin.ac.hmc.edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="reI/iBAAp9kzkmX4" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-net@freebsd.org Subject: Re: 5.4 / 6.0 wi0 and dhcp with closed network X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 02:15:26 -0000 --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" 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--