Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a problem that until now I wasn't able to solve by my self. I use an Intel 3945ABG wireless card with my Ubuntu 9.04 OS. The network agent works fine, I can introduce an ASCII password without problem for whatever wireless AP in range, but my AP is set up by the administrator to accept only hex ones (WEP encryption). Until now I tried to introduce (without succeeding) keywords in this format xx:xx:xx... or simply xxxxxx... directly into graphical manager but no result (it's a 26 character hex password).
Even when using terminal the result is the same. What I did is this
sudo iwconfig wlan0 essid APNAME key xxxxxx...(hex key)
or
sudo iwconfig wlan0 key xxxxxx...(hex key) without specifying the APNAME
After this tried
sudo ifconfig down
and again
sudo ifconfig up
... but also without result.
I think I miss something here, so please provide some help if you confronted with the same problem.
I managed to solve the problem in this post. What you have to do is this:
go to your rc.local file and edit it in su mode (sudo gedit /etc/rc/rc.local or sudo gedit /etc/rc.local depends of your distro). You must add before exit0 line these lines
iwconfig wlan0 key open xxxxxx...(your hex password)
iwconfig wlan0 essid APNAME
ifconfig wlan0 up
dhcpcd wlan0
... save the file and close it. In the above lines, wlan0 is the name of my wireless card (so pls change it with yours instead, APNAME is the name of the AP you want to connect to -mine is named homesweethome-).
restart your PC ...and eventually that's it. If your Gnome asks you for keyring or similar please search the forum regarding this matter.
After the computer is restarted and suppose that you solved the keyring problem (this is not valid for all Linux based OSs) the wireless will not be connected (at least this is what happened to me) to your desired AP, but instead you can now type the password directly into your Network Manager application window (I did copy paste of it from a file where I saved it, because for me is difficult to retain a 26 character hex number). This is it, now you can introduce directly the hex key into the graphical Network Management tool.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.