Switching wireless networks: WPA <-> unencrypted

Pietro Cerutti gahr at FreeBSD.org
Fri Aug 29 11:11:36 UTC 2008


-----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 at freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"


- --
Pietro Cerutti
gahr at 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-----


More information about the freebsd-questions mailing list