From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 03:10:19 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AB90016A41F for ; Sun, 4 Dec 2005 03:10:19 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from makeworld.com (makeworld.com [216.201.118.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDC9143D77 for ; Sun, 4 Dec 2005 03:10:18 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from localhost (localhost.com [127.0.0.1]) by makeworld.com (Postfix) with ESMTP id 28A096495; Sat, 3 Dec 2005 21:10:18 -0600 (CST) Received: from makeworld.com ([127.0.0.1]) by localhost (makeworld.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60649-06; Sat, 3 Dec 2005 21:10:15 -0600 (CST) Received: by makeworld.com (Postfix, from userid 1008) id 40D1C6214; Sat, 3 Dec 2005 21:10:15 -0600 (CST) Received: from [216.201.118.138] (racerx.makeworld.com [216.201.118.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by makeworld.com (Postfix) with ESMTP id 164336169; Sat, 3 Dec 2005 21:10:15 -0600 (CST) Message-ID: <43925E17.4070102@makeworld.com> Date: Sat, 03 Dec 2005 21:10:15 -0600 From: Chris User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051122) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David LeCount References: <20051204030003.94007.qmail@web53704.mail.yahoo.com> In-Reply-To: <20051204030003.94007.qmail@web53704.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.3 (20050822) at makeworld.com - FreeBSD:The Power To Serve Cc: freebsd-questions@freebsd.org Subject: Re: Having much trouble with wep on wireless X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: RacerX@makeworld.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 03:10:19 -0000 David LeCount wrote: > I give in. I've been working for hours on this without > resolution. I just bought a wireless router and I'm > trying to get wep working. I'm pretty sure it's > working on the router side. I'm having trouble setting > the key in FreeBSD. The man page says to use wepkey to > set it, but that's been giving errors. When I just do > "ifconfig ath0", I notice there's a deftxkey, so I've > been using that to try to set the key. The problem is > that when I use it, it still says it's undefined > despite no errors. Here's an example: > > kenshi# ifconfig ath0 wepmode on deftxkey 0x0123456789 > kenshi# ifconfig ath0 > ath0: > flags=8843 mtu > 1500 > inet6 fe80::213:46ff:fe6e:def9%ath0 prefixlen > 64 scopeid 0x1 > ether 00:13:46:6e:de:f9 > media: IEEE 802.11 Wireless Ethernet > autoselect (OFDM/36Mbps) > status: associated > ssid bahamut channel 6 bssid 00:14:bf:b4:c3:e8 > authmode OPEN privacy ON deftxkey UNDEF > txpowmax 36 protmode CTS > bintval 100 > > Since it says privacy is on, I believe that means > wepmode was set, but I can't set the key for anything. > By the way, if I run ifconfig with all the parameters, > including the IP address, it says: > > ifconfig: ioctl (SIOCAIFADDR): File exists > > This has me completely baffled. I thought I got it > working once, but when I set it in rc.conf and > restarted, it no longer worked and I haven't managed > to get it working again. I appreciate any help. Here's some help via my setup - assuming you use 6.0: /etc/rc.conf: ifconfig_wi0="inet xxx.xxx.xxx.xxx netmask 255.255.255.xxx ssid yourssid wepmode on weptxkey 1 wepkey 0x.........................." /boot/loader.conf: if_wi0_load="YES" wlan_load="YES" wlan_wep_load="YES" Couple of notes - sub wi0 for your nic, and I use static. Adjust for DHCP if needed. -- Best regards, Chris Any surviving best shots are ruined when someone inadvertently open the darkroom door and all of the dark leaks out.