From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 17 19:18:10 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 165F5106566C for ; Mon, 17 Mar 2008 19:18:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id E46B88FC16 for ; Mon, 17 Mar 2008 19:18:09 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m2HJHtOk082854 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Mar 2008 12:17:55 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <47DEC3E3.8010900@freebsd.org> Date: Mon, 17 Mar 2008 12:17:55 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: "Alphons \"Fonz\" van Werven" References: <200803170751.m2H7pMQW020344@yoda.pixi.com> <47DEC0F0.5090100@student.utwente.nl> In-Reply-To: <47DEC0F0.5090100@student.utwente.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist 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:18:10 -0000 Alphons "Fonz" van Werven wrote: > knowtree@aloha.com wrote: > >> ifconfig_wi0="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. > > 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. > > 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. Actually, the problem is in the wi driver; it isn't properly integrated with the 802.11 layer so devd isn't receiving the necessary events to trigger starting dhclient. Noone seems to care about the driver and it's hard to get worked up about 5 year old cards when a new one that does 11g can be had for US$20. Sam