From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 10:11:46 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 1D6961065670 for ; Fri, 29 Aug 2008 10:11:46 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id A6C8D8FC0C for ; Fri, 29 Aug 2008 10:11:45 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so545299fgb.35 for ; Fri, 29 Aug 2008 03:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=o38Q7tT8LitmirN3+F2ZBuFCMGzXSgyVu5WHWNFkTrY=; b=pRZgoKVX7s0iYkq+0po054bywCK/FsYDZfCM87AMy5mPFuR20SqrwymYwlxjxXMBGT WvcIqbPi+V5AFsBE5LobIWkpDgicMD4W9WZG5kNaM0Aiv1TfaohJAiRa1jibKVcSwYgv rgWCKARgmycT/vXQ3RmLUDxzE2U1aUirJQrN0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=kDLWgTdW5NbdJZAObkLvGPNAw3f2VutxZ5E2EBBJoYPK/Q7QdtcQUifBBupBfxxBco AmcyWzB+tTjbD65zBpr/D+ulzjcRWt8yONjaUW+lh0+02pWgstaIndp4g+BjKHGQIyBL 5KT0mSogh354MGUR5htzWdsblDUM1c0R1Wvog= Received: by 10.86.90.13 with SMTP id n13mr345808fgb.3.1220004704217; Fri, 29 Aug 2008 03:11:44 -0700 (PDT) Received: by 10.86.31.16 with HTTP; Fri, 29 Aug 2008 03:11:44 -0700 (PDT) Message-ID: Date: Fri, 29 Aug 2008 12:11:44 +0200 From: "Lars Stokholm" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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 10:11:46 -0000 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.