LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-11-2004, 08:02 AM   #1
stuart
Member
 
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Rep: Reputation: 15
How to enter my WEP key? *solved*


No i didnt solve it, i been trying to get this for about 3 hours now and still no luck

I can connect and work fine with my AP with no WEP enabled so everything is working there.

But when i enable WEP

Here is the situation

If i set my WEP mode on the AP to 128bit Automatic and i type in the passphrase "testing" (without the quotes) and it generates the WEP key "9B70F45B07F513B71B042F8509" how do i apply that to my network setup?? Usually in my windows setup i just go to my network setup and select that its 128bit encryption and i would type in "testing" as the passphrase and it auto generates the WEP key and it connects fine.

I have tried these but they dont seem to work for me

iwconfig wlan0 key s:testing
iwconfig wlan0 key 9B70F45B07F513B71B042F8509

I've tried to use both of those settings and neither of them work, i read a bunch of other posts about this and i think what im doing is suppose to be working???

Any help will be welcomed

Last edited by stuart; 07-11-2004 at 09:44 AM.
 
Old 07-11-2004, 09:45 AM   #2
stuart
Member
 
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Original Poster
Rep: Reputation: 15
bump: i had edited this to say i had solved the issue but i still need help
 
Old 07-11-2004, 10:03 AM   #3
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
This is how mine works:

iwconfig wlan0 essid NAME
iwconfig wlan0 mode Managed
iwconfig wlan0 channel 7
iwconfig wlan0 key 12345678909876543212345678 (26 characters)

Maybe you are not entering the right channel? or omitting the mode?
 
Old 07-12-2004, 09:10 AM   #4
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
here's a tip, open another console window and run iwevent in that new window. You can then double check any iwconfig commands you type in the first console window are being accepted. This is useful if you, like me, have a daemon or another process resetting your iwconfig commands and wondering why none of your iwconfig commands work.
 
Old 07-12-2004, 08:05 PM   #5
stuart
Member
 
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Original Poster
Rep: Reputation: 15
thanks for the tip, that would have been really handy yesterday had i know about that
 
Old 07-14-2004, 05:02 PM   #6
aliyoung56
LQ Newbie
 
Registered: Jul 2004
Location: Bristol, England
Distribution: Mandrake 10
Posts: 3

Rep: Reputation: 0
I have a Belkin f5d700 card installed and recognised with ndiswrapper 0.8. It works fine with security off but I cannot get 128bit WEP working. In Windows XP (through the Belkin utility) I just type in the 26 characters and am good to go. Taking cck23's suggestion, I got the following 3 lines in the iwevent window:
21:47:12.008534 wlan0 Encryption key:****-****-****-****-****-****-** Security modepen
21:47:13.491875 wlan0 Encryption keyff
21:47:13.491934 wlan0 ESSIDff/any
So something did reset it.
What is doing it? And how do I stop it?

This is my first post so please let me know if there isn't enough info here.
 
Old 07-14-2004, 09:37 PM   #7
stuart
Member
 
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Original Poster
Rep: Reputation: 15
if you wish to reset your wep key and set your essid for your lan card, you will need to type this command


log in as root then type this

>iwconfig wlan0 essid "essid here"
>iwconfig wlan0 key on
>iwconfig wlan0 key 12345678901234567890123456

of course substitute the above key command for your own key

then type

>dhclient wlan0



then see how you go


(also please remove all the "" from the essid comman)

hope this helps
 
Old 07-15-2004, 01:22 AM   #8
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
Aliyoung,

looks like you had exactly the same problem as me, when you type in your iwconfig, you should only get one line in iwevent, you are getting three like me and like you i at first could not get it to work with wep switched on. Right now, i have to leave for work but will post my resolution when i get in the office, in the meanwhile, please post your linux distribution and version here please

CCK
 
Old 07-15-2004, 03:17 AM   #9
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
Ok - hello again,

I see that you are using Mandrake from your profile...I am using Mdk 10 as well so hopefully this will help:

I found that when i inserted my card or when I used iwconfig commands the following script was being run (you can add your own debug to this script to confirm this):

/etc/sysconfig/network-scripts/ifup-wireless

if you look at this script you will see that it looks for the existence of the iwconfig command and if it does exist it will perform some iwconfig commands e.g. iwconfig open, iwconfig essid any etc...

In my case, the reason that key was always "off" and essid was also set to Any was because at the time the script was run, certain variables didn't exisit.

To get around this i discovered that the /etc/sysconfig/network was being read...so the magic solution for me was to set my /etc/sysconfig/network file as follows:

NETWORKING=yes
KEY=1234567890
ESSID=myNetwork

I also modified the /etc/sysconfig/network-scripts/ifup-wireless very slightly, you might not need this but I changed the line:

iwconfig $DEVICE key $KEY

to the following:

iwconfig $DEVICE key open $KEY

Now my wireless cards flawlessly, with the excpetion if I use MAC Address restrictions at the router then for some reason dhclient wlan0 seems to take much longer, so i have switch that off at the router.


Good luck and please let us know how it goes, I might extracts of this to WiKi if it works for you as it would be nice to know if it's a general issue and might apply to others.

CCK
 
Old 07-15-2004, 03:43 AM   #10
aliyoung56
LQ Newbie
 
Registered: Jul 2004
Location: Bristol, England
Distribution: Mandrake 10
Posts: 3

Rep: Reputation: 0
Thanks both,
I will try it out and hopefully post success.
Ali.
 
Old 07-15-2004, 10:11 AM   #11
stuart
Member
 
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by cck23
Ok - hello again,

I see that you are using Mandrake from your profile...I am using Mdk 10 as well so hopefully this will help:

I found that when i inserted my card or when I used iwconfig commands the following script was being run (you can add your own debug to this script to confirm this):

/etc/sysconfig/network-scripts/ifup-wireless

if you look at this script you will see that it looks for the existence of the iwconfig command and if it does exist it will perform some iwconfig commands e.g. iwconfig open, iwconfig essid any etc...

In my case, the reason that key was always "off" and essid was also set to Any was because at the time the script was run, certain variables didn't exisit.

To get around this i discovered that the /etc/sysconfig/network was being read...so the magic solution for me was to set my /etc/sysconfig/network file as follows:

NETWORKING=yes
KEY=1234567890
ESSID=myNetwork

I also modified the /etc/sysconfig/network-scripts/ifup-wireless very slightly, you might not need this but I changed the line:

iwconfig $DEVICE key $KEY

to the following:

iwconfig $DEVICE key open $KEY

Now my wireless cards flawlessly, with the excpetion if I use MAC Address restrictions at the router then for some reason dhclient wlan0 seems to take much longer, so i have switch that off at the router.


Good luck and please let us know how it goes, I might extracts of this to WiKi if it works for you as it would be nice to know if it's a general issue and might apply to others.

CCK

that info is really really handy to have, if i had that info when i was setting my network up...things would have been sooooo much easier, i tried to find out where the card was getting its settings from but no one could give me the right info, this would be relaly helpfull to alot of people if it was posted somehwere......the amount opeople that i read saying that their card looses its settings on start, i usually just redirect to /etc/rc.local but this is more of a "proper" way

thanks for the info
 
Old 07-16-2004, 03:21 AM   #12
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
Hi Stuart

I think adding iwconfig commands and dhcpd/dhclient commands to /etc/rc.local is fine, I even do that myself. The problem addressed by modifying ifup-wireless and the network file were really only needed by me and perhaps some other people when I noticed like aliyoung that when I did enter my iwconfig commands, something else was also automatically resetting my settings. Adding them to ifup-wireless and network config got around that.
 
Old 07-16-2004, 04:08 AM   #13
stuart
Member
 
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Original Poster
Rep: Reputation: 15
Yeah thats cool, but i also had EXACTLY the same issues with my card when i was trying to use ndiswrapper, i never got it going, the only way i ended up getting it working was using the linuxant driver(which worked perfectly) however in 19 days they want me to pay $20 for a license to keep using it so i might uninstall it and try ndiswrapper again with this method.
 
Old 07-16-2004, 04:55 AM   #14
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
Hello again all (and stuart )

I have actually been docuemting my experiences in the WiKi section of linuxquestions in the hope that all the hours (literally spent 4 days trying to understand what was going on, which included a re-install of mdk 10) and hope that other prospective linux wireless users do not go through the agony that I went through:

http://wiki.linuxquestions.org/wiki/Wireless_networking

Now, I am the first to admin that i am not the best writer but i hope to include the key points.

Hope it goes well for you and all

CCK
 
Old 07-21-2004, 07:22 AM   #15
aliyoung56
LQ Newbie
 
Registered: Jul 2004
Location: Bristol, England
Distribution: Mandrake 10
Posts: 3

Rep: Reputation: 0
F A N T A S T I C ! ! !

I can connect to my wireless network with 128bit WEP encryption!

I followed the instructions from the INSTALL file in ndiswrapper-0.8 but my iwconfig commands didn't seem to work.

I started iwevent in another window.

When I typed `iwconfig wlan0 key 123123123123123`, I got additional commands in iwevent resetting 'essid to off/any' and 'encryption to off'.

I then added the following 2 lines to the /etc/sysconfig/network-scripts/ifcfg-wlan0:

KEY=123123123123123
ESSID=belkin54g

Then, when I retried the iwconfig command, there was just that one command in the iwevent window.

Then joy of joys, I could ping my router and access it's config at 192.168.2.1.

I ran the last instruction from INSTALL `ndiswrapper -m` and now my network is available on reboot.

Thanks to cck23 and stuart for their posts on this thread, I am a happy bunny :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have to enter WEP-key over and again artificialGekko Linux - Wireless Networking 2 11-07-2005 07:11 AM
enter wep key....where?? bariswheel Mandriva 3 12-23-2004 03:19 AM
How do you enter a Wep key? yodaf Linux - Wireless Networking 3 08-27-2004 09:59 PM
How to enter WEP key in wireless.opts cmisip Linux - Wireless Networking 2 06-30-2003 08:56 PM
How do I enter the wep key for netgear ma401? cmisip Linux - Wireless Networking 2 06-05-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration