From owner-freebsd-current@FreeBSD.ORG Sun Feb 27 00:58:57 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F92816A506 for ; Sun, 27 Feb 2005 00:58:57 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BAAB43D2D for ; Sun, 27 Feb 2005 00:58:56 +0000 (GMT) (envelope-from incmc@gmx.de) Received: (qmail invoked by alias); 27 Feb 2005 00:58:54 -0000 Received: from pD9E6EB42.dip.t-dialin.net (EHLO ms.homeip.net) (217.230.235.66) by mail.gmx.net (mp019) with SMTP; 27 Feb 2005 01:58:54 +0100 X-Authenticated: #15946415 Received: from [10.0.0.1] (helo=[10.0.0.13]) by ms.homeip.net with esmtpsa (TLSv1:AES256-SHA:256) id 1D5Cnr-0007l4-Aw for freebsd-current@freebsd.org; Sun, 27 Feb 2005 02:00:59 +0100 Message-ID: <42211B4A.6090307@gmx.de> Date: Sun, 27 Feb 2005 01:58:50 +0100 From: Jochen Gensch User-Agent: Mozilla Thunderbird 1.0 (X11/20050101) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Wpa, dhcp and default routes... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 00:58:57 -0000 Hi, first of all thanks for the great wpa support and the centralized possibilty to manage all the wireless connection in one file. But I have a few questions though: System: FreeBSD Current built today with atheros card. 1) wpa_supplicant brings up the connection fine, however only if I start it after attaching my card. If remove the card while a link is up and reattach it aftwards, wpa_supllicant tries to reinitialize the connection but fails with the following message: "Association request to the driver failed" I was hoping it is able to wait for a card to attach and then automatically bring up the connections... 2) If the connection is up, dhclient needs to be restartet as well to poll an ip from the dhcp server. I even tried the -i option. 3) Biggest issue: If I had a link on my fxp0 interface before, there is NO chance to tell the system to change the default route to my ath0 device. It always default to fxp0. I couldn't find any suitable option for route to change that. So in a nutshell it is only possible to use the wireless stuff with a lot of workarounds to me. The only thing I'm trying to accomplish is the following (as Windows does): 1) attach your wireless card 2) automatically recognize card and establish a connection to access points in a predefined order 3) fetch IP address via dhcp 4) change default route to correct nic and gateway 5) when detaching wireless nic, change route back to other available connections (if avail.) How are you getting this done? Any hints? Thanks a lot, Jochen