From owner-freebsd-questions@FreeBSD.ORG Mon Dec 20 16:13:28 2004 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 8F49816A4CE for ; Mon, 20 Dec 2004 16:13:28 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58D4443D1D for ; Mon, 20 Dec 2004 16:13:28 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd49554 (utd49554.utdallas.edu [129.110.3.85]) by smtp1.utdallas.edu (Postfix) with ESMTP id A0477388EE9; Mon, 20 Dec 2004 10:13:27 -0600 (CST) Date: Mon, 20 Dec 2004 10:13:27 -0600 From: Paul Schmehl To: Scott Bennett , freebsd-questions@freebsd.org Message-ID: <4C9F306EABD019DDDBAA540D@utd49554.utdallas.edu> In-Reply-To: <200412200814.iBK8EK2j020638@mp.cs.niu.edu> References: <200412200814.iBK8EK2j020638@mp.cs.niu.edu> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: ifconfig for WLAN using WEP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 16:13:28 -0000 --On Monday, December 20, 2004 02:14:20 AM -0600 Scott Bennett wrote: > I've been asked in freebsd-newbies to move this to freebsd-questions, > so I'll start with my original message content after this line. > I'm trying to get my FreeBSD 5.2.1 system to connect to our household > wireless net. The router and the only other computer in the household are > using WEP, so my FreeBSD machine needs to do so as well. Unfortunately, > whenever I add a WEP-related argument (e.g., wep, wepkey, wepmode) to the > ifconfig command, as in > > ifconfig fwe0 wep > > I get > > ifconfig: SIOCS80211: Invalid argument > This was posted recently here by Daan Vreeken. You can't combine "use DHCP" and "use this SSID" in /etc/rc.conf . To do both, you need to create a startup script that sets the interface options (ssid / wep key / etc) and then just set /etc/rc.conf to use DHCP. In /etc/rc.conf put this : ifconfig_ath0="DHCP" Then place this in a file called /etc/start_if.ath0 : ifconfig ath0 ssid "some network" wepmode on wepkey 0x1234567890123 --- end of /etc/start_if.ath0 --- The RC scripts will now first execute /etc/start_if.ath0 on boot, and then try to get an ip address on the interface with dhclient. Obviously, your file would be /etc/start_if.fwe0. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu