From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 17 20:51:05 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F3881065677; Mon, 17 Mar 2008 20:51:05 +0000 (UTC) (envelope-from asstec@matik.com.br) Received: from msrv.matik.com.br (msrv.matik.com.br [200.152.83.14]) by mx1.freebsd.org (Postfix) with ESMTP id 254BE8FC14; Mon, 17 Mar 2008 20:51:03 +0000 (UTC) (envelope-from asstec@matik.com.br) Received: from anb.p.matik.com.br (anb.p.matik.com.br [200.152.83.34] (may be forged)) by msrv.matik.com.br (8.14.1/8.13.1) with ESMTP id m2HJj7CD059520; Mon, 17 Mar 2008 16:45:07 -0300 (BRT) (envelope-from asstec@matik.com.br) From: AT Matik Organization: Infomatik To: freebsd-mobile@freebsd.org Date: Mon, 17 Mar 2008 16:44:35 -0300 User-Agent: KMail/1.9.7 References: <200803170751.m2H7pMQW020344@yoda.pixi.com> <47DEC0F0.5090100@student.utwente.nl> <20080317192236.GC38485@lor.one-eyed-alien.net> In-Reply-To: <20080317192236.GC38485@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803171644.35491.asstec@matik.com.br> X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on msrv.matik.com.br X-Virus-Status: Clean Cc: knowtree@aloha.com, Brooks Davis , Alphons Fonz van Werven Subject: Re: ifconfig, wifi, and DHCP X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 20:51:05 -0000 On Monday 17 March 2008 16:22:36 Brooks Davis wrote: > On Mon, Mar 17, 2008 at 07:05:20PM +0000, Alphons Fonz van Werven wrote: > > knowtree@aloha.com wrote: > >> ifconfig_wi0=3D"dhcp ssid Oz" > > you could try this ifconfig_wi0=3D"DHCP" and create a [/usr/local]/etc/dhclient.conf interface wi0 { ssid Oz; } > > [snip] > > > >> Can I use this quoted phrase when I invoke ifconfig manually? I see ss= id > >> documented on the man page for ifconfig, but not dhcp. > > > > It's not ifconfig that calls DHCP, it's the network startup script > > /etc/rc.d/netif. It's also this script that reads rc.conf, not ifconfi= g. > > > > You can either call that script (which will call ifconfig AND DHCP for > > you) or call BOTH ifconfig and DHCP manually. > > > > In the former case: > > # /etc/rc.d/netif start > > should bring up the network. > > > > In the latter case: > > # ifconfig wi0 up > > should bring up the network, > > # ifconfig wi0 ssid Oz (plus any additional arguments) > > should get you associated to the network and then > > # dhclient wi0 > > should get you an IP address. > > > > The ifconfig invokations can usually be combined into one, but if you > > don't call the netif script you'll have to invoke DHCP manually. > > In theory dhclient shouldn't need to be called manually. The fact that > it appears to be needed indicates that the wi driver fails to set it's > link state correctly and thus to pass information up to devd which would > start dhclient. > > -- Brooks =2D-=20 Atenciosamente, J.M. Respons=E1vel Plant=E3o Site Support Matik Infomatik Internet Technology (18)3551.8155 =A0(18)8112.7007 http://info.matik.com.br A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br