From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 17 19:05:24 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 4CE1C106566C for ; Mon, 17 Mar 2008 19:05:24 +0000 (UTC) (envelope-from a.j.werven@student.utwente.nl) Received: from mx.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feba:632a]) by mx1.freebsd.org (Postfix) with ESMTP id C10E78FC16 for ; Mon, 17 Mar 2008 19:05:23 +0000 (UTC) (envelope-from a.j.werven@student.utwente.nl) Received: from [127.0.0.1] (vpn180053.student.utwente.nl [130.89.180.53]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id m2HJ5AKS009049; Mon, 17 Mar 2008 20:05:12 +0100 Message-ID: <47DEC0F0.5090100@student.utwente.nl> Date: Mon, 17 Mar 2008 19:05:20 +0000 From: "Alphons \"Fonz\" van Werven" User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: knowtree@aloha.com References: <200803170751.m2H7pMQW020344@yoda.pixi.com> In-Reply-To: <200803170751.m2H7pMQW020344@yoda.pixi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: a.j.werven@student.utwente.nl X-Spam-Status: No Cc: 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:05:24 -0000 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. Hth, Alphons -- All right, that does it Bill [Donahue]. I'm pretty sure that killing Jesus is not very Christian. -- pope Benedict XVI, South Park episode #158