From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 11:11:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF16F106567D for ; Fri, 29 Aug 2008 11:11:35 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id ACD9C8FC18 for ; Fri, 29 Aug 2008 11:11:35 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KZ1t8-00050S-GC; Fri, 29 Aug 2008 13:11:34 +0200 Message-ID: <48B7D935.3030205@FreeBSD.org> Date: Fri, 29 Aug 2008 13:10:45 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080807) MIME-Version: 1.0 To: Lars Stokholm References: In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org Subject: Re: Switching wireless networks: WPA <-> unencrypted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2008 11:11:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Lars Stokholm wrote: | I usually use two WPA encrypted wireless networks and I have | wpa_supplicant.conf set up for that. In rc.conf I have | ifconfig_ath0="WPA DHCP". It's working fine, but once in a while I | have to use other, unencrypted networks and that presents a problem. | How do I connect to these with the least amount of trouble? | | Right now it involves commenting out the line in rc.conf, restarting | netif, manually configuring ifconfig and running dhclient. | | Surely there must be a better way to do this...? Preferably it should | automatically fall back to using unencrypted networks, if no | configured encrypted networks are available... or something like that. wpa_supplicant.conf supports WEP and open networks as well: # WEP network network={ ~ ssid="network_id" ~ key_mgmt=NONE ~ wep_tx_keyidx=0 ~ wep_key0="WEPKEYHERE" } # Open network network={ ~ ssid="network_id" ~ key_mgmt=NONE } | _______________________________________________ | 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" - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAki32TIACgkQwMJqmJVx947DVwCg26S+ux3hTCMNH5OC8/tzo8HZ fTsAn1vzTAkt7YqDnOkMiTuKBkA2keE6 =Br3B -----END PGP SIGNATURE-----