Date: Sat, 30 Jul 2005 23:09:10 -0500 From: Eric Schuele <e.schuele@computer.org> To: Sam Leffler <sam@errno.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: dhclient and wpa_supplicant Message-ID: <42EC4EE6.6070606@computer.org> In-Reply-To: <42EBF80C.7030702@errno.com> References: <42EAD325.60707@errno.com> <42EAD80C.9060707@errno.com> <42EBC41E.4070102@computer.org> <42EBC77F.1010601@errno.com> <42EBD3A0.5070407@computer.org> <42EBF80C.7030702@errno.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------020005090205010706060804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sam Leffler wrote: > Eric Schuele wrote: > >> Sam Leffler wrote: >> >>> Eric Schuele wrote: >>> >> >> <big-snip> >> >>>> dhclient.conf contains >>>> =========================== >>>> interface "ath0" { >>>> #send option host-name "myhost"; >>>> #send option domain-name "nxdomain.org"; >>>> send dhcp-client-identifier "myhost"; >>>> >>>> media >>>> ### Home >>>> "ssid <home_ssid> mode 11b channel 11 wepmode on weptxkey 1 wepkey >>>> 0x<home_wepkey>", >>>> ### Office >>>> "ssid <office_ssid mode 11b channel 6 wepmode on weptxkey 1 wepkey >>>> 0x<office_wepkey>"; >>>> request subnet-mask, broadcast-address, routers, >>>> domain-name-servers, domain-name; >>>> } >>> >>> >>> >>> >>> Do not use media statements to setup wireless parameters; this does >>> not work. You need to run wpa_supplicant and let it identify the >>> network and setup the key parameters. >> >> >> >> How do I tell wpa_supplicant about the network media? I had found an >> older post of yours regarding NOT doing it in dhclient.conf.... but >> I've found no other way to accomplish it. > > > The above dhclient.conf lists media settings that are all handled by > wpa_supplicant so you don't specify any of them. Specifically you set > ssid, band, channel, and wep parameters; all these are handled by > wpa_supplicant. ok... I removed the lines from dhclient.conf. I reboot, and run wpa_supplicant manually with -d. The output is attached. My AP shows up as "", while my neighbors ssids are not hidden ('linksys' and 'default'). > > The intent is that dhclient deal only with the dhcp protocol and stop > being involved in the discovery and selection of wireless networks (a > job wpa_supplicant is better equipped to handle). > >> >>> >>>> >>>> wpa_supplicant.conf >>>> ============================= >>>> ctrl_interface=/var/run/wpa_supplicant >>>> ctrl_interface_group=wheel >>>> >>>> # Home Network >>>> network={ >>>> ssid="<home_ssid>" >>>> scan_ssid=1 >>>> key_mgmt=NONE >>>> wep_tx_keyidx=0 >>>> wep_key0="<home_wepkey>" >>>> } >>>> >>>> # Office Network >>>> network={ >>>> ssid="<office_ssid>" >>>> scan_ssid=1 >>>> key_mgmt=NONE >>>> wep_tx_keyidx=0 >>>> wep_key0="<office_wepkey>" >>>> } >>>> >>> >>> Not sure you need scan_ssid set, I'd leave it out. >>> >>> If you have problems try disabling auto-startup of ath0 and run >>> wpa_supplicant by hand with the -d flag to see what it's doing. Once >>> that's going then enable startup in rc.conf. If you continue to have >>> problems provide the output wpa_supplicant -d -i ath0 -c >>> /etc/wpa_supplicant.conf (or similar) when you have trouble. There is >>> also a pending issue with locating some ap's that are setup to hide >>> their ssid. If one of the ap's is configured in this way contact me >>> directly--I've been trying to collect the info I need to identify >>> what's going on. >> >> >> >> Both my APs (home and office) hide their ssids. One is a wrt54g >> (home), the other is linksys as well... though I forget the model at >> the moment (FWIW its a/b/g). What can I do to provide the info you need? > > > These should work; I've had reports of problems with certain Cisco ap's. > Note however that configuring an ap to hide it's ssid adds no real > security. I realize hidden ssids are of no real world use... but they keep *my* neighbors out (you'll notice their ssids in the wpa_supp output). > > Sam > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Any idea why my machine will never associate with my AP using wpa_supplicant? Anything else I can provide that may shed some light? I am using WEP... not WPA... could that part of the problem. Since WPA was not previously supported I had been using WEP... and figured I'd move up to WPA one step at a time. All help is appreciated. -- Regards, Eric --------------020005090205010706060804 Content-Type: text/plain; name="wpa.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="wpa.txt" Script started on Sat Jul 30 15:38:44 2005 You have mail. fangorn# wpa_supplicant -d -i ath0 -c /etc/wpa_supplicnt[K[K[Kcant.conf Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'default' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' ctrl_interface='/var/run/wpa_supplicant' ctrl_interface_group=0 (from group name 'wheel') Priority group 0 id=0 ssid='wLAN_WEP_Kx6L04o2' id=1 ssid='laquinta-g' Initializing interface (2) 'ath0' Own MAC address: 00:0e:9b:53:31:9d wpa_driver_bsd_set_wpa: enabled=1 wpa_driver_bsd_del_key: keyidx=0 wpa_driver_bsd_del_key: keyidx=1 wpa_driver_bsd_del_key: keyidx=2 wpa_driver_bsd_del_key: keyidx=3 wpa_driver_bsd_set_countermeasures: enabled=0 wpa_driver_bsd_set_drop_unencrypted: enabled=1 Setting scan request: 0 sec 100000 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (3 BSSes) Scan results: 3 Selecting BSS from priority group 0 0: 00:13:10:94:f4:07 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 2: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (3 BSSes) Scan results: 3 Selecting BSS from priority group 0 0: 00:13:10:94:f4:07 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 2: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (1 BSSes) Scan results: 1 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (3 BSSes) Scan results: 3 Selecting BSS from priority group 0 0: 00:13:10:94:f4:07 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 2: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:13:10:94:f4:07 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) Received 0 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 0 0: 00:11:95:07:be:ec ssid='default' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE 1: 00:0f:66:00:ca:5c ssid='' wpa_ie_len=0 rsn_ie_len=0 skip - no WPA/RSN IE No suitable AP found. Setting scan request: 5 sec 0 usec Starting AP scan (broadcast SSID) ^CSignal 2 received - terminating No keys have been configured - skip key clearing wpa_driver_bsd_set_wpa: enabled=0 wpa_driver_bsd_set_drop_unencrypted: enabled=0 wpa_driver_bsd_set_countermeasures: enabled=0 No keys have been configured - skip key clearing wpa_driver_bsd_set_wpa: enabled=0 fangorn# exit exit Script done on Sat Jul 30 15:41:27 2005 --------------020005090205010706060804--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42EC4EE6.6070606>