Date: Tue, 5 Jul 2005 08:53:48 -0700 From: Freddie Cash <fcash@ocis.net> To: freebsd-current@freebsd.org Subject: Re: dhclient.conf for ath wireless Message-ID: <200507050853.49057.fcash@ocis.net> In-Reply-To: <42CAA885.2000101@locolomo.org> References: <42CA4263.9080409@locolomo.org> <6.2.1.2.2.20050705220015.029fa770@mail.nerdshack.com> <42CAA885.2000101@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507050853.49057.fcash>