Help with WEP keys on FreeBSD 6.0
Fabian Keil
freebsd-listen at fabiankeil.de
Wed Mar 15 13:36:51 UTC 2006
Warren Toomey <wkt at tuhs.org> wrote:
> With WEP enabled on the WRT54G, I run these commands on FreeBSD:
>
> ifconfig iwi0 10.10.2.20 netmask 255.255.255.0 channel 6 ssid fred
> ifconfig iwi0 wepmode on wepkey 0x3f352a2149646c675e5e2abcde
>
> and ifconfig iwi0 then shows:
>
> iwi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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
>
> 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
--
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060315/e940bb5f/signature.pgp
More information about the freebsd-questions
mailing list