have a question about WEP 40/128-bit key (try to connect under command line)
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
have a question about WEP 40/128-bit key (try to connect under command line)
I tried to connect to the encrypted wireless under command line. What I did is:
# ifconfig wlan0 up
# iwlist wlan0 scan ( and I see my target wireless network is there)
# iwconfig wlan0 essid "My_Network" key 0123456789
# dhclient wlan0
But it did not work. What I was sure was I managed to connect to this network with this key in Ubuntu Network Manager, if using GUI. I later searched for this problem and it seemed that iwconfig recognized the key as hex by default. If using ascii, it should be:
You say "it didn't work", but you don't say exactly what happened. For example, with my router, it is sometimes necesary to re-boot the router to get the wireless to work. iwconfig does not give any useful feedback in certain situations.
If the ascii key is "fred", then the hex is simply the codes for each letter--66 72 65 64. I don't remember if they are separated by ":" or something else.
In each mode, I have to use exactly the stated # of characters. Thus, there is no mode that would allow me to have a wep key with 10 characters.
Check your router settings to see what the options are, and post the settings of the router.
What kind of router do you have?
Some routers have the ability to enter the wep key in hex or ascii.
ASCII 5 character key is 10 hex characters
ASCII 13 character key is 26 hex characters
etc
Please humor me and look at the router settings----and maybe try the key lengths that I mentioned. It is possible that the Ubuntu wireless manage does something like truncate a code that is too long.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.