From owner-freebsd-current@FreeBSD.ORG Thu Jul 7 16:49:23 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7D9616A41C for ; Thu, 7 Jul 2005 16:49:23 +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 6541B43D46 for ; Thu, 7 Jul 2005 16:49:23 +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 j67GnMWg015820; Thu, 7 Jul 2005 09:49:22 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j67GnM1Z015819; Thu, 7 Jul 2005 09:49:22 -0700 Date: Thu, 7 Jul 2005 09:49:22 -0700 From: Brooks Davis To: Rob B Message-ID: <20050707164922.GA15353@odin.ac.hmc.edu> References: <42CA4263.9080409@locolomo.org> <6.2.1.2.2.20050705220015.029fa770@mail.nerdshack.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <6.2.1.2.2.20050705220015.029fa770@mail.nerdshack.com> 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: Erik =?iso-8859-1?Q?N=F8rgaard?= , current@freebsd.org Subject: Re: dhclient.conf for ath wireless X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 16:49:23 -0000 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 05, 2005 at 10:09:22PM +1000, Rob B wrote: > At 06:18 PM 5/07/2005, Erik N=F8rgaard wrote: > >I am running -CURRENT with the new port of dhclient from OpenBSD. The=20 > >problem is that dhclient most often associante with my neighbours AP=20 > >instead of mine. > > > >The man-pages mentions the "media" statement and according to the exampl= es=20 > >I can find in google I should add an entry like this: > > > >interface "ath0" { > > media "ssid MYAP mode 11g"; > >} > > > >in dhclient.conf. But on boot, dhclient enters into an infinite loop=20 > >bringing up and down the interface, until I break it. I have to manually= =20 > >run "ifconfig ath0 ssid MYAP mode 11g" and then start dhclient manually = to=20 > >force it to associate correctly with MYAP. >=20 > Have you tried putting the appropriate ifconfig command line into=20 > /etc/start_if.ath0. That works for me. The correct method is to just add: ifconfig_ath0=3D"ssid MYAP mode 11g DHCP" to /etc/rc.conf. With exception of devices that load firmware, you probably do not need /etc/start_if.* these days. -- 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 --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCzV0SXY6L6fI4GtQRAuymAKCHo3yzgwESeDBDCF4wfhyY+qPDRgCfYj/j mSHakegLPb5aqU687sEPbu8= =TCOQ -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--