From owner-freebsd-questions@FreeBSD.ORG Wed Dec 7 20:58:33 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C0E616A420 for ; Wed, 7 Dec 2005 20:58:33 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BFEE43D77 for ; Wed, 7 Dec 2005 20:58:28 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.16.2.1] (unknown [172.16.2.1]) by strange.daemonsecurity.com (Postfix) with ESMTP id 5156F2E041; Wed, 7 Dec 2005 21:56:28 +0100 (CET) Message-ID: <43974CEB.6080708@locolomo.org> Date: Wed, 07 Dec 2005 21:58:19 +0100 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= Organization: Locolomo.ORG User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050909) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dominique Goncalves References: <7daacbbe0512071233q71e5608as8e47a975032f46f4@mail.gmail.com> In-Reply-To: <7daacbbe0512071233q71e5608as8e47a975032f46f4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jon Drukman , freebsd-questions@freebsd.org Subject: Re: Thanks for FBSD6 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: Wed, 07 Dec 2005 20:58:33 -0000 Dominique Goncalves wrote: >>basically the meat of the script looks like: >> >>ifconfig ath0 ssid "my wireless network" >>dhclient ath0 >> >> >>if someone can tell me what /etc/rc.conf options i need to set to >>duplicate that, that would be cool. i played around with it for a while >>but never got it to work without my custom script. > > You can use in /etc/rc.conf: > > ifconfig_ath0="DHCP ssid your_ssid" That's FreeBSD 5.X and prior way of doing it. The suggested way to config your wirerless is with wpa_supplicant(8). In rc.conf add: wpa_suplicant_enable="YES" ifconfig_ath0="DHCP" and create wpa_supplicant.conf: network={ ssid="MyWireless" mode="11g" } The neat thing is that you can configure multiple networks and wpa_supplicant will try them in order. Note that dhclient was replaced with the new OpenBSD implementation in FBSD6, and wpa_supplicant introduced to handle association with wireless networks. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2