From owner-freebsd-current@FreeBSD.ORG Tue Jul 5 15:53:58 2005 Return-Path: X-Original-To: freebsd-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 4666E16A41C for ; Tue, 5 Jul 2005 15:53:58 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E28243D55 for ; Tue, 5 Jul 2005 15:53:57 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id C76CE8A00B4 for ; Tue, 5 Jul 2005 08:53:54 -0700 (PDT) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 42742-01-80 for ; Tue, 5 Jul 2005 08:53:50 -0700 (PDT) Received: from s9.sbo (s9.sbo [192.168.0.9]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 5E9858A00AE for ; Tue, 5 Jul 2005 08:53:50 -0700 (PDT) From: Freddie Cash To: freebsd-current@freebsd.org Date: Tue, 5 Jul 2005 08:53:48 -0700 User-Agent: KMail/1.8.1 References: <42CA4263.9080409@locolomo.org> <6.2.1.2.2.20050705220015.029fa770@mail.nerdshack.com> <42CAA885.2000101@locolomo.org> In-Reply-To: <42CAA885.2000101@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200507050853.49057.fcash@ocis.net> X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca 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: Tue, 05 Jul 2005 15:53:58 -0000 On July 5, 2005 08:34 am, Erik N=F8rgaard wrote: > Rob B wrote: > > At 06:18 PM 5/07/2005, Erik N=F8rgaard wrote: > >> in dhclient.conf. But on boot, dhclient enters into an infinite loop > >> bringing up and down the interface, until I break it. I have to > >> manually run "ifconfig ath0 ssid MYAP mode 11g" and then start > >> dhclient manually to force it to associate correctly with MYAP. > > Have you tried putting the appropriate ifconfig command line into > > /etc/start_if.ath0. That works for me. > Thanks, that was the keyword I needed. I searched google and at it > appears that in -current the start_if script may be replaced by setting > the options in the rc.conf: > ifconfig_ath0=3D"ssid MYAP mode 11g DHCP" > It doesn't seem to be appropriate if you hook up to various networks, > such as at home, Starbucks etc. would be neat to have the startup script > to run through the preconfigured networks and pick the first one that > works. I haven't tried this yet, but you should be able to use the WPA Supplicant= =20 and /etc/wpa_supplicant.conf to configure multiple networks, using WEP=20 and/or WPA. Just create a separate network block for each one with all=20 the appropriate settings. Then change the ifconfig line in /etc/rc.conf=20 to read: ifconfig_ath0=3D"WPA DHCP" The wpa supplicant will be started and configured to use ath0, it will go=20 through the networks in /etc/wpa_supplicant.conf until it either finds=20 none and exits or finds one and connects, then dhclient will be executed=20 on ath0. =2D-=20 =46reddie Cash fcash@ocis.net