From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 17 19:22:40 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 BDBE4106564A for ; Mon, 17 Mar 2008 19:22:40 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5898FC17 for ; Mon, 17 Mar 2008 19:22:40 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.1/8.13.8) with ESMTP id m2HJMaEd050733; Mon, 17 Mar 2008 14:22:36 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m2HJMaTK050732; Mon, 17 Mar 2008 14:22:36 -0500 (CDT) (envelope-from brooks) Date: Mon, 17 Mar 2008 14:22:36 -0500 From: Brooks Davis To: Alphons Fonz van Werven Message-ID: <20080317192236.GC38485@lor.one-eyed-alien.net> References: <200803170751.m2H7pMQW020344@yoda.pixi.com> <47DEC0F0.5090100@student.utwente.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JWEK1jqKZ6MHAcjA" Content-Disposition: inline In-Reply-To: <47DEC0F0.5090100@student.utwente.nl> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 17 Mar 2008 14:22:36 -0500 (CDT) Cc: knowtree@aloha.com, freebsd-mobile@freebsd.org 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 19:22:40 -0000 --JWEK1jqKZ6MHAcjA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2008 at 07:05:20PM +0000, Alphons Fonz van Werven wrote: > knowtree@aloha.com wrote: >=20 >> ifconfig_wi0=3D"dhcp ssid Oz" > [snip] >> Can I use this quoted phrase when I invoke ifconfig manually? I see ssid >> documented on the man page for ifconfig, but not dhcp. >=20 > 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 ifconfig. >=20 > You can either call that script (which will call ifconfig AND DHCP for yo= u) > or call BOTH ifconfig and DHCP manually. >=20 > In the former case: > # /etc/rc.d/netif start > should bring up the network. >=20 > 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. >=20 > 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 --JWEK1jqKZ6MHAcjA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFH3sT7XY6L6fI4GtQRAkliAJ0akmtFuLYpRdSlRHolVbu8qJoaPACfdKm9 CBHLogQw21uyh4QwlNkytxg= =N3kd -----END PGP SIGNATURE----- --JWEK1jqKZ6MHAcjA--