From owner-freebsd-questions@FreeBSD.ORG Sun May 1 22:21:22 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 BE8B116A4CE for ; Sun, 1 May 2005 22:21:22 +0000 (GMT) Received: from mbc.edu (mail.mbc.edu [216.57.240.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3991843D1D for ; Sun, 1 May 2005 22:21:22 +0000 (GMT) (envelope-from ckleski@mbc.edu) Received: from [192.168.0.101] by mbc.edu (Cipher TLSv1:RC4-MD5:128) (MDaemon.PRO.v8.0.0f2.R) with ESMTP id md50004798301.msg for ; Sun, 01 May 2005 18:21:03 -0400 From: ckleski@mbc.edu To: freebsd-questions@freebsd.org Date: Sun, 1 May 2005 18:22:40 +0000 User-Agent: KMail/1.7.2 References: <1114976100.1134.7.camel@localhost> In-Reply-To: <1114976100.1134.7.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505011822.40221.ckleski@mbc.edu> X-SortMonster-MessageSniffer-Message: md50004798301.msg X-SortMonster-MessageSniffer-Rules: tgibseut-MDPv0.53b (SNFv2-3.1i2) No patterns matched. X-SortMonster-MessageSniffer-Result: 0 X-Authenticated-Sender: ckleski@mbc.edu X-Spam-Processed: mail.mbc.edu, Sun, 01 May 2005 18:21:03 -0400 (not processed: message from trusted or authenticated source) X-Lookup-Warning: HELO/EHLO lookup on 192.168.0.101 does not match 65.202.151.105 X-MDRemoteIP: 65.202.151.105 X-Return-Path: ckleski@mbc.edu X-MDaemon-Deliver-To: freebsd-questions@freebsd.org X-MDAV-Processed: mail.mbc.edu, Sun, 01 May 2005 18:21:06 -0400 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 22:21:22 -0000 You can make a file /etc/start_if.wi0 which has the line ifconfig ssid GISH mode auto wepmode on wepkey 0x1234567890 Keep ifconfig_wi0="DHCP" in /etc/rc.conf. That should do it. On Sunday 01 May 2005 07:35 pm, 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.