LinuxQuestions.org
Register a domain and help support LQ
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 05-27-2006, 03:04 PM   #1
muteki_sykes
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
iwconfig cannot set WEP key


hi all, i'm a newbie here but i've been messing around w/linux for a little while now... i'm trying to get slackware 10 set up on my dell inspiron 600m right now. i have almost everything working; everything but the network card.

i have 2 network interfaces, an ethernet and wireless interface. the wireless is a broadcom 4318 chipset. i have the firmware in place and have compiled the ndiswrapper to interface w/the card. when i did an iwconfig at school (which doesn't have an encryption key) i was able to detect the wireless network but not able to obtain an IP, which i think was because i didn't have a new enough version of DHCP. i got that taken care of.

the problem is when i try to connect at home. i live with my brother and he has the network set up for shared key (is that the problem?) access. he also masks the SSID so that you need the key to get on the network. unfortunately, when i try to enter the key using iwconfig, like this:

iwconfig wlan0 essid myNetwork key [1] \
aaaaaaaaaaaaaaaaaaaaaaaaa

i get "Error: unrecognised wireless request \"...\""
and it repeats my key back to me. now, of course, all those A's aren't my real key; when i put in the A's, it doesn't complain at all; it simply doesn't detect any network. this means that when i do an iwconfig, no SSID or Access Point is listed.

i have read posts by alot of people who seem to have pretty much the same problem with different cards and distro.'s, but none offered a solution that worked for me.
i haven't gotten back to school yet to check whether i can get an IP or not, so i'm still not sure if that's related, but at least at school the wireless tools detected the network. any words of wisdom would be greatly appreciated.

thanks so much, --Abe
 
Old 05-27-2006, 03:12 PM   #2
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
Pretty sure that it is:

iwconfig wlan0 essid "your router's broadcast id"

example: iwconfig wlan0 essid linksys

and for the key it is:

iwconfig wlan0 key open XXXXXXXXXXXXXXXXXXXXXXXXXX

or

iwconfig wlan0 key restricted XXXXXXXXXXXXXXXXXXXXXXXXXX

this is of course assuming that you have the proper driver loaded for your wireless card.

Good luck
 
Old 05-27-2006, 03:14 PM   #3
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
To get an IP you might want to try

dhcpcd wlan0
 
Old 05-27-2006, 03:46 PM   #4
muteki_sykes
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
still stuck

i've typed both in exactly as above, but i still get the error message.

iwconfig wlan0 essid myBroadcastID
iwconfig wlan0 key open xxxxxxxxxxxxxxxxxxxxxxxxx
iwconfig wlan0 key restricted xxxxxxxxxxxxxxxxxxxxxxxxx

for the first i don't get any messages, and the ESSID remains set to "off/any". for the second two i get the same "unrecognised wireless request error."

dhcpcd wlan0

sits there until i kill it, and

dhclient wlan0

says it didn't get any DHCPOFFERS. what else should i try?

thanks again, --Abe
 
Old 05-27-2006, 03:49 PM   #5
muteki_sykes
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
P.s.

i'm pretty sure i have the right firmware b/c i looked it up real carefully and it detects the network at school, i just couldn't get an IP.
 
Old 05-27-2006, 03:50 PM   #6
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
First of all what does ndiswrapper -l say?

Second, what does iwconfig say?

One time I had to point the card to the AP first to get it to work. If you know the router's mac, I think the command is:

iwconfig wlan0 ap XX:XX:XX:XX:XX <----router's mac
 
Old 05-27-2006, 04:07 PM   #7
muteki_sykes
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
ndiswrapper/iwconfig output

i was putting in an 'o' when i should have been putting in a 0. i switched out the o with a 0 and it detected my network. unfortunately, i forgot to install the 16k stack patch in my kernel and DHCP crashed the computer. i'll let you know how that works out once i get it patched.

again, thanks so much. --Abe
 
Old 05-27-2006, 05:07 PM   #8
DrEwMoNeY
Member
 
Registered: Jan 2006
Location: Vulcan
Distribution: *buntu - Slackware - Anything on USB
Posts: 254

Rep: Reputation: 30
Good Luck and Have Fun!

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to set WEP key automattically? enemorales Linux - Wireless Networking 2 11-24-2004 02:03 PM
WEP configuration using iwconfig clue=0 Linux - Wireless Networking 1 08-28-2004 08:53 PM
Ndiswrapper Set Shared Key (wep) krayhze Linux - Wireless Networking 0 07-17-2004 06:29 PM
Planet PCMCIA WiFi card can't change WEP key set shneoh Linux - Wireless Networking 2 07-03-2004 12:04 PM
Not again?! Can't set up WEP key inthefuture Linux - Wireless Networking 0 07-02-2004 01:36 AM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration