From owner-freebsd-questions@FreeBSD.ORG Wed Jul 6 18:13:16 2005 Return-Path: X-Original-To: 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 83A9A16A41C for ; Wed, 6 Jul 2005 18:13:16 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from shiva.nextrials.com (shiva.nextrials.com [64.81.74.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5708943D46 for ; Wed, 6 Jul 2005 18:13:16 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from [192.168.1.102] (mito.sr.nextrials.com [192.168.1.102]) by shiva.nextrials.com (Postfix) with ESMTP id E960D3C2831; Wed, 6 Jul 2005 11:13:15 -0700 (PDT) Message-ID: <42CC1F32.4010508@toldme.com> Date: Wed, 06 Jul 2005 11:13:06 -0700 From: Danny Howard User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050607) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Erik_N=F8rgaard?= References: <42C949D1.5090107@locolomo.org> In-Reply-To: <42C949D1.5090107@locolomo.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Questions Subject: Re: dhclient.conf for wireless interface 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, 06 Jul 2005 18:13:16 -0000 Erik Nørgaard wrote: > Hi, > > I am trying to configure dhclient to associate with the correct > accesspoint, I use FreeBSD Current with the new dhclient ported from > OpenBSD. > > The examples I can find mentions that I should create an entry in my > dhclient.conf like this: > > interface "ath0" { > media "ssid AP1 mode 11g", "ssid AP2 mode 11g"; > } > > and dhclient will then first try to associate with AP1 and then AP2. > > The problem is that with that setup dhclient enters into an aparently > infinite loop bringing up and down the interface, until I break it. I > have to manually run 'ifconfig ssid AP1 mode 11g' first. Erik, FWIW, it looks like you are doing the right thing. Maybe you have hit a bug? There may be a tweak for dhclient's configuration to extend the amount of time it will attempt a profile before giving up and trying the next. I would like to think that "mode 11g" is superflous, and that you can just set that before-hand, or at a lower level ... Good Luck, -danny -- http://dannyman.toldme.com/