From owner-freebsd-questions@FreeBSD.ORG Tue Nov 30 11:00:17 2004 Return-Path: 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 77C3016A4CF for ; Tue, 30 Nov 2004 11:00:17 +0000 (GMT) Received: from amsfep16-int.chello.nl (amsfep16-int.chello.nl [213.46.243.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDEA743D58 for ; Tue, 30 Nov 2004 11:00:15 +0000 (GMT) (envelope-from Danovitsch@vitsch.net) Received: from Vitsch.net ([212.187.78.35]) by amsfep16-int.chello.nl (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP id <20041130110014.JAEI2021.amsfep16-int.chello.nl@Vitsch.net>; Tue, 30 Nov 2004 12:00:14 +0100 Received: from [192.168.2.4] (cp402377-c.venlo1.lb.home.nl [84.29.14.88]) by Vitsch.net (8.12.3p2/8.11.3) with ESMTP id iAUAxaeD009700; Tue, 30 Nov 2004 11:59:36 +0100 (CET) (envelope-from Danovitsch@vitsch.net) From: "Daan Vreeken [PA4DAN]" To: RL Date: Tue, 30 Nov 2004 11:59:50 +0100 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411301159.51073.Danovitsch@vitsch.net> cc: FreeBSD-Questions@FreeBSD.org Subject: Re: Wireless Card and SSID X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 11:00:17 -0000 On Monday 29 November 2004 23:51, RL wrote: > Sending again... I really need to solve this. > > I have a Netgear WAG511 PC Card and am using the ath driver. In my > /etc/rc.conf I have ath0 to use DHCP and also I have: > ifconfig_ath0="ssid myssid". Now, I can set this all up manually > using ifconfig and it works till I reboot. When I set it in my rc.conf > and I boot it up, I get "ath0: association failed (reason 12) for > 00:0f:66:02..." flash on my screen one right after another. And when I > do ifconfig, it shows no IP address NOR the ssid I set. For some > reason it doesn't see the SSID or DHCP I set up in rc.conf. You can't combine "use DHCP" and "use this SSID" in /etc/rc.conf . To do both, you need to create a startup script that sets the interface options (ssid / wep key / etc) and then just set /etc/rc.conf to use DHCP. In /etc/rc.conf put this : ifconfig_ath0="DHCP" Then place this in a file called /etc/start_if.ath0 : ifconfig ath0 ssid "some network" wepmode on wepkey 0x1234567890123 --- end of /etc/start_if.ath0 --- The RC scripts will now first execute /etc/start_if.ath0 on boot, and then try to get an ip address on the interface with dhclient. grtz, Daan