From owner-freebsd-current@FreeBSD.ORG Sun Feb 27 05:20:44 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 4D94D16A4CE for ; Sun, 27 Feb 2005 05:20:44 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE1D243D41 for ; Sun, 27 Feb 2005 05:20:41 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.89] ([66.127.85.89]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j1R5KeWi042211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Feb 2005 21:20:41 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <422158D3.7020603@errno.com> Date: Sat, 26 Feb 2005 21:21:23 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jochen Gensch References: <42211B4A.6090307@gmx.de> In-Reply-To: <42211B4A.6090307@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: 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 05:20:44 -0000 Jochen Gensch wrote: > 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... > I think I recall seeing this. I mostly use minipci cards so don't experience this. I'll check on it. > > 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. I've not seen that however I mostly use a port of the openbsd dhclient that's been modified to understand 802.11 msgs through the routing socket. Unfortunately I've got no time to shepherd this work into the tree and noone responded to my request for help in the last status report. > > 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. Yes, this is a pain with the current dhclient. I believe it's resolved with the new dhclient hook scripts. > > 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? This all works for me unless you have both the wireless and wired nic's active concurrently; then you get the default route setup for the first nic. Sam