From owner-freebsd-questions@FreeBSD.ORG Sun May 1 19:57:50 2005 Return-Path: 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 271C116A4CE for ; Sun, 1 May 2005 19:57:50 +0000 (GMT) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1AE743D4C for ; Sun, 1 May 2005 19:57:49 +0000 (GMT) (envelope-from tobias.fendin@telia.com) Received: from [192.168.1.6] (81.227.162.56) by pne-smtpout2-sn2.hy.skanova.net (7.1.026.7) (authenticated as u18317830) id 42662CF1002E6F9F for freebsd-questions@freebsd.org; Sun, 1 May 2005 21:57:48 +0200 Message-ID: <427534BC.5070203@telia.com> Date: Sun, 01 May 2005 21:57:48 +0200 From: Tobias Fendin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050403) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1114976100.1134.7.camel@localhost> In-Reply-To: <1114976100.1134.7.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: DHCP using ifconfig doesn't work ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 19:57:50 -0000 Kiffin Gish wrote: >I want to use DHCP for my wireless connection by placing the following >lines in my /etc/rc.conf file: > >ifconfig_wi0="DHCP" >ifconfig_wi0="ssid GISH mode auto wepmode on wepkey 0x1234567890" > >I have also tried running sysinstall again and reconfiguring my wireless >connection by answering 'yes' to DHCP. > >However, these do not work for some weird reason. When I login as root >and run 'dhclient wi0' then all is a-okay. > >How can I have this happen automatically during boot without having >manually to run this command as root everytime? > >Thanks alot in advance as usual. > > If you do like that, first ifconfig_wi0 will be set to "DHCP", then it will be overwritten and set to "ssid GISH mode auto wepmode on wepkey 0x1234567890". You should only have one line with ifconfig_wi0. //Tobias