Wireless works, but WEP won't :(
Wireless works, but WEP won't :(
Hi all. I'm new to Puppy Linux but not Linux in general (been using Ubuntu on and off for about 6 months). Anyway I have a problem that's causing me a lot of frustration, hopefully someone here can help me out.
I have a pretty old-ish laptop (333mhz, 128mb RAM) with a PCMCIA wireless card (Proxim 8430). My router is a Linksys Wireless WRT54G (v6). I've been wanting to put Linux on this laptop, the first distro I tried was Xubuntu which was too slow for my liking, so next I tried Puppy Linux. Puppy seems to be a lot more lightweight than Xubuntu, and I would be using it as my primary OS on the laptop if it weren't for the fact that I can't get WEP encryption to work! It worked fine on Xubuntu ("out of the box", too) so I know my wireless card *can* use WEP in Linux, I just can't figure out why it won't work in Puppy..
According to this webpage, my Proxim 8430 should be using the 'hostap' driver. I tried the hostap_cs driver in Puppy, when the driver loads it says it recognizes the device but when I scan for a wireless network it can't find mine. Even entering the SSID manually doesn't do anything, it doesn't seem to be able to connect to anything. Turning WEP encryption on/off didn't make a difference.
So I scrolled through the list of drivers and decided to try the orinoco_cs driver for the hell of it. Lo and behold, this driver enables me to connect wirelessly to my router, but only with NO encryption! If I enable WEP, the connection test fails, and I can't visit any websites.
Can anyone help me out with this? I've finally found the right distro for my laptop (the sound even works, couldn't get it to work on Xubuntu) but I'm not willing to leave an open wireless point just so I can use the Internet on it. (I'm aware of MAC address filtering, but I really would like to have WEP on as well). Any suggestions would be greatly appreciated.
Edit: forgot to mention, this is with Puppy Linux 2.14
I have a pretty old-ish laptop (333mhz, 128mb RAM) with a PCMCIA wireless card (Proxim 8430). My router is a Linksys Wireless WRT54G (v6). I've been wanting to put Linux on this laptop, the first distro I tried was Xubuntu which was too slow for my liking, so next I tried Puppy Linux. Puppy seems to be a lot more lightweight than Xubuntu, and I would be using it as my primary OS on the laptop if it weren't for the fact that I can't get WEP encryption to work! It worked fine on Xubuntu ("out of the box", too) so I know my wireless card *can* use WEP in Linux, I just can't figure out why it won't work in Puppy..
According to this webpage, my Proxim 8430 should be using the 'hostap' driver. I tried the hostap_cs driver in Puppy, when the driver loads it says it recognizes the device but when I scan for a wireless network it can't find mine. Even entering the SSID manually doesn't do anything, it doesn't seem to be able to connect to anything. Turning WEP encryption on/off didn't make a difference.
So I scrolled through the list of drivers and decided to try the orinoco_cs driver for the hell of it. Lo and behold, this driver enables me to connect wirelessly to my router, but only with NO encryption! If I enable WEP, the connection test fails, and I can't visit any websites.
Can anyone help me out with this? I've finally found the right distro for my laptop (the sound even works, couldn't get it to work on Xubuntu) but I'm not willing to leave an open wireless point just so I can use the Internet on it. (I'm aware of MAC address filtering, but I really would like to have WEP on as well). Any suggestions would be greatly appreciated.
Edit: forgot to mention, this is with Puppy Linux 2.14
Re: Wireless works, but WEP won't :(
How do you enter the key?randomguy wrote:If I enable WEP, the connection test fails
Do you enter the key as ascii or hex?
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
The orinoco driver is very old, and does not support scanning.
There is an ENHANCED version of the orinoco driver which DOES support scanning, but let's see if we can get your HostAP driver working first:
The HostAP driver has a few quirks. Sometimes this driver will load in "master" mode (as an access point) but for normal "client" use it needs to be in "managed" mode. So before running the Network Wizard, set up the driver by running some commands in rxvt, in either of these ways -
## OPTION 1
rmmod orinoco_cs
rmmod hostap_cs
modprobe hostap_cs iw_mode=2
ifconfig wlan0 up
## or OPTION 2
rmmod orinoco_cs
modprobe hostap_cs
iwconfig wlan0 mode managed
ifconfig wlan0 up
There is an ENHANCED version of the orinoco driver which DOES support scanning, but let's see if we can get your HostAP driver working first:
The HostAP driver has a few quirks. Sometimes this driver will load in "master" mode (as an access point) but for normal "client" use it needs to be in "managed" mode. So before running the Network Wizard, set up the driver by running some commands in rxvt, in either of these ways -
## OPTION 1
rmmod orinoco_cs
rmmod hostap_cs
modprobe hostap_cs iw_mode=2
ifconfig wlan0 up
## or OPTION 2
rmmod orinoco_cs
modprobe hostap_cs
iwconfig wlan0 mode managed
ifconfig wlan0 up
-
- Posts: 1
- Joined: Wed 28 Mar 2007, 21:02
Same problem
I am having the same issue that randomguy has. I have a Microsoft wireless MN-520 pcmcia card that I have been using with XUbuntu but puppy linux looks like it will run much faster. When I boot up the card is detected and works with orinoco_cs drivers but has no WEP support which I need.
I have tried rmmod orinoco_cs so that I can remove that module and instead load the other hostap_cs module but it says that I can't unload it because it is in use which it is since puppy uses this driver for my card by default. If I pull out the card it then says that it can't find the orinoco_cs module to remove it.
So, How do I stop the module from running so that I can remove it and load hostap_cs instead. Tempestuous I really appreciate your contributions to this forum and I hope that you can help us resolve this issue as well. Thanks in advance for the help.
I have tried rmmod orinoco_cs so that I can remove that module and instead load the other hostap_cs module but it says that I can't unload it because it is in use which it is since puppy uses this driver for my card by default. If I pull out the card it then says that it can't find the orinoco_cs module to remove it.
So, How do I stop the module from running so that I can remove it and load hostap_cs instead. Tempestuous I really appreciate your contributions to this forum and I hope that you can help us resolve this issue as well. Thanks in advance for the help.
Re: Wireless works, but WEP won't :(
I'm not sure? I enter the key exactly as it appears in my router's setup, the 26 numbers and letters.John Doe wrote:How do you enter the key?randomguy wrote:If I enable WEP, the connection test fails
Do you enter the key as ascii or hex?
I have tried both of your suggestions and it still can't see my network (like I said before, manually entering my SSID doesn't work either). It seems that the only driver that works is the orinoco_cs one but I can't get WEP working with it. You said something about an enhanced orinoco driver, can you tell me how I could try that one?tempestuous wrote:The orinoco driver is very old, and does not support scanning.
There is an ENHANCED version of the orinoco driver which DOES support scanning, but let's see if we can get your HostAP driver working first:
The HostAP driver has a few quirks. Sometimes this driver will load in "master" mode (as an access point) but for normal "client" use it needs to be in "managed" mode. So before running the Network Wizard, set up the driver by running some commands in rxvt, in either of these ways -
## OPTION 1
rmmod orinoco_cs
rmmod hostap_cs
modprobe hostap_cs iw_mode=2
ifconfig wlan0 up
## or OPTION 2
rmmod orinoco_cs
modprobe hostap_cs
iwconfig wlan0 mode managed
ifconfig wlan0 up
Thanks
Re: Wireless works, but WEP won't :(
That's 128 Hex.randomguy wrote:I enter the key exactly as it appears in my router's setup, the 26 numbers and letters.
You can check if it's getting assigned to the device by typing:
iwconfig
Re: Wireless works, but WEP won't :(
Here's a screenshot of the output of iwconfig (apologies for the quality, had to use my digital camera). There doesn't seem to be any mention of a WEP key there, but I assigned it in the network setup. (btw this is with the orinoco_cs driver)John Doe wrote:That's 128 Hex.randomguy wrote:I enter the key exactly as it appears in my router's setup, the 26 numbers and letters.
You can check if it's getting assigned to the device by typing:
iwconfig
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
To stop a module from loading, you can "blacklist" it in /etc/rc.d/rc.modules
as explained by rarsa here -
http://www.murga-linux.com/puppy/viewto ... 578#103578
I think that the HostAP driver should be a better solution, but if you want the "enhanced" version of the orinoco driver, it's here -
http://www.murga-linux.com/puppy/viewto ... 2709#92709
as explained by rarsa here -
http://www.murga-linux.com/puppy/viewto ... 578#103578
I think that the HostAP driver should be a better solution, but if you want the "enhanced" version of the orinoco driver, it's here -
http://www.murga-linux.com/puppy/viewto ... 2709#92709
Okay, I've made some progress, but still not there yet.
I decided to try the hostap_cs driver again. But this time I did a manual config through the command line, following the instructions here. Basically I did these commands:
And you know what, it worked. Kind of. I know the laptop is communicating with the router because it shows up in the DHCP Table in the router's setup page. It was issued an IP address of 192.168.1.100 by the DHCP server. I checked the network setup and it even filled in the primary and secondary DNS server values. But I can't access the Internet! I tried pinging google.com and it says it can't resolve the host name. Even pinging the router at 192.168.1.1 doesn't return a response, which I don't understand because the laptop must've communicated somewhat with the router to have acquired the DNS info and to be issued an IP address.
I'm stumped.
I decided to try the hostap_cs driver again. But this time I did a manual config through the command line, following the instructions here. Basically I did these commands:
Code: Select all
iwconfig wlan0 essid blahblah mode managed channel 11 key <mykey>
dhcpcd -t 20 -d wlan0
I'm stumped.
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
Yes, doing the whole setup from the commandline is a good way to troubleshoot.
More thorough instructions (specific to HostAP) are here -
http://puppyfiles.org/dotpupsde/dotpups ... README.txt
More thorough instructions (specific to HostAP) are here -
http://puppyfiles.org/dotpupsde/dotpups ... README.txt
I followed that guide, and still, no luck. The laptop receives an IP address from my router but yet it can't access the Internet. I've included screenshots of the output of iwconfig and ifconfig below, hopefully someone can get some useful information from them.tempestuous wrote:Yes, doing the whole setup from the commandline is a good way to troubleshoot.
More thorough instructions (specific to HostAP) are here -
http://puppyfiles.org/dotpupsde/dotpups ... README.txt
And here's a screenshot from my router's setup, showing the laptop on the DHCP server:
Any ideas?
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
First I would disable encryption at the router and check that the HostAP driver works without encryption. If successful, now we can move on to using WEP.
I see "Security mode:restricted" and I'm wondering if this should be "open". So try the "open" parameter in your iwconfig command -
iwconfig wlan0 essid MY_ESSID key open 1234567890
EDIT: John Doe beat me to it by seconds ... at least we're on the same wavelength.
Don't worry about "wifi0", that's a "virtual interface" or "placeholder".
I see "Security mode:restricted" and I'm wondering if this should be "open". So try the "open" parameter in your iwconfig command -
iwconfig wlan0 essid MY_ESSID key open 1234567890
EDIT: John Doe beat me to it by seconds ... at least we're on the same wavelength.
Don't worry about "wifi0", that's a "virtual interface" or "placeholder".
I've had that happen a couple times also. I agree same wavelength is good.tempestuous wrote:John Doe beat me to it by seconds ... at least we're on the same wavelength.
Thanks for the info. The one PCMCIA wifi card I had broke before I found Puppy, so I've never seen one in action. This thread was great though because I have a friend with one and he was wondering how to get it going. Now I think I can try to get him through the process.tempestuous wrote:Don't worry about "wifi0", that's a "virtual interface" or "placeholder".
Still no luck. I tried disabling WEP on the router and then entering the commands leaving out the key value, but then the router won't even issue the laptop an IP address. I also tried putting the word 'open' before the key, like key open <mykey> but that didn't seem to make a difference either. It did change the security mode from restricted to open but I still couldn't ping or connect to websites.tempestuous wrote:First I would disable encryption at the router and check that the HostAP driver works without encryption. If successful, now we can move on to using WEP.
I see "Security mode:restricted" and I'm wondering if this should be "open". So try the "open" parameter in your iwconfig command -
iwconfig wlan0 essid MY_ESSID key open 1234567890
EDIT: John Doe beat me to it by seconds ... at least we're on the same wavelength.
Don't worry about "wifi0", that's a "virtual interface" or "placeholder".
Anything else I could try? I appreciate all the help but I'm beginning to wonder if I'll ever get this working.
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
WEP key wireless cracking made easy
http://www.theregister.co.uk/2007/04/04 ... _cracking/
Code breakers have discovered a technique for extracting a 104-bit Wired Equivalent Privacy (WEP) key in under a minute.
Something to look at...I know b......all about wireless.
Chris
http://www.theregister.co.uk/2007/04/04 ... _cracking/
Code breakers have discovered a technique for extracting a 104-bit Wired Equivalent Privacy (WEP) key in under a minute.
Something to look at...I know b......all about wireless.
Chris