Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2005 21:21:23 -0800
From:      Sam Leffler <sam@errno.com>
To:        Jochen Gensch <incmc@gmx.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Wpa, dhcp and default routes...
Message-ID:  <422158D3.7020603@errno.com>
In-Reply-To: <42211B4A.6090307@gmx.de>
References:  <42211B4A.6090307@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?422158D3.7020603>