From owner-freebsd-questions@FreeBSD.ORG Wed Mar 15 13:36:51 2006 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 BF09116A401 for ; Wed, 15 Mar 2006 13:36:51 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E808843D46 for ; Wed, 15 Mar 2006 13:36:50 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 29835 invoked from network); 15 Mar 2006 13:36:48 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.150.245]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 15 Mar 2006 13:36:48 -0000 Date: Wed, 15 Mar 2006 14:36:27 +0100 From: Fabian Keil To: Warren Toomey Message-ID: <20060315143627.257e7519@localhost> In-Reply-To: <20060315124257.GA25917@minnie.tuhs.org> References: <20060315124257.GA25917@minnie.tuhs.org> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_HOG+tuhLUr_hVFsXeIQgaZM; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-questions@freebsd.org Subject: Re: Help with WEP keys on FreeBSD 6.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2006 13:36:51 -0000 --Sig_HOG+tuhLUr_hVFsXeIQgaZM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Warren Toomey wrote: > With WEP enabled on the WRT54G, I run these commands on FreeBSD: >=20 > ifconfig iwi0 10.10.2.20 netmask 255.255.255.0 channel 6 ssid fred > ifconfig iwi0 wepmode on wepkey 0x3f352a2149646c675e5e2abcde >=20 > and ifconfig iwi0 then shows: >=20 > iwi0: flags=3D8843 mtu 1500 > inet 10.10.2.20 netmask 0xffffff00 broadcast 10.10.2.255 > ether 00:16:6f:4b:98:57 > media: IEEE 802.11 Wireless Ethernet autoselect > status: associated > ssid fred channel 6 bssid 00:14:bf:74:d4:5e > authmode OPEN privacy ON deftxkey UNDEF wepkey 1:104-bit > txpowmax 100 protmode CTS bintval 100 >=20 > However, pings from the laptop (10.10.2.20) to the AP (10.10.2.1) > fail. I have wlan_wep built into the kernel. Can anybody think what I > might be doing wrong? Since FreeBSD 6 you have to tell ifconfig which key to use as default, it no longer defaults to the first one. As you see you have "deftxkey UNDEF", your key isn't used. Try: ifconfig iwi0 wepmode on wepkey 1:0x3f352a2149646c675e5e2abcde deftxkey 1 Fabian --=20 http://www.fabiankeil.de/ --Sig_HOG+tuhLUr_hVFsXeIQgaZM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEGBhujV8GA4rMKUQRAlCdAKCcCfhDZXsN5ljof3/zusCb3FVrXgCg4du2 Hfyh7hEqK2bcjSuwW99AFpY= =Qa8V -----END PGP SIGNATURE----- --Sig_HOG+tuhLUr_hVFsXeIQgaZM--