LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-01-2003, 04:17 AM   #1
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Rep: Reputation: 16
Question How exactly do I specify a WEP key?


I've got a D-Link DWL-650 wireless card working perfectly in my new laptop, but there's something I can't quite figure out. How exactly do I specify a WEP key?

In /etc/pcmcia/wireless.opts, it seems that the KEY= setting is what I should be interested in, but I'm not sure exactly what the format of this setting is. If my WEP key were 0123456789abcdeffedcba9876 (hex) or "WePkeY" (password), how would I set those?
 
Old 09-01-2003, 01:08 PM   #2
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Actually, it depends on the driver. I've seen three different formats ...
01:23:45:67:89:ab:cd:ef: ...
0123456789-abcdeffedc-...
and
s:WePkeY
(which may have to be entered as 57:65:50:6b:65:59).

And, depending on the driver, it may not look in /etc/pcmcia/wireless.opts!

FWIW, the D-Link DWL-650 has changed chipsets without changing model number, so I can't really guess which driver you are using unless you tell the entire identifier (and maybe the relevant output from /var/log/messages).

-bbeers
 
Old 09-01-2003, 06:40 PM   #3
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
I am using the orinoco_cs driver.
 
Old 09-02-2003, 08:50 AM   #4
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
IIRC, orinoco_cs uses iwconfig to set the wireless params,
manually you can type commands like:

iwconfig eth0 key 0123-4567-89ab-cdef-fedc-ba98-76
or
iwconfig eth0 key s:WePkeY

the relevant section from man iwconfig is:

key/enc[ryption]
Used to manipulate encryption or scrambling keys and encryption mode.
To set the current encryption key, just enter the key in hex digits as
XXXX-XXXX-XXXX-XXXX or XXXXXXXX. To set a key other than the current
key, prepend or append [index] to the key itself (this won't change
which is the active key). You can also enter the key as an ASCII string
by using the s: prefix. Passphrase is currently not supported.
To change which key is the current active key, just enter [index] (with-
out entering any key value).
off and on disable and reenable encryption, open set the system in open
mode (accept non-encrypted packets) and restricted discard non-encrypted
packets.
If you need to set multiple keys, or set a key and change the active
key, you need to use multiple key directives. Arguments can be put in
any order, the last one will take precendence.
Examples :
iwconfig eth0 key 0123-4567-89
iwconfig eth0 key sassword [2]
iwconfig eth0 key [2] open
iwconfig eth0 key off
iwconfig eth0 key restricted [3] 0123456789
iwconfig eth0 key 01-23 key 45-67 [4] key [4]

and it should be fine to set these in the /etc/pcmcia/wireless.opts file.
 
  


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
WEP key thoyyib Linux - Wireless Networking 2 09-29-2005 03:22 AM
What if I don't know the WEP key? death_au Linux - Wireless Networking 1 04-26-2005 06:40 PM
How to enter my WEP key? stuart Linux - Wireless Networking 15 07-21-2004 09:32 AM
WEP Key HashBang Linux - Wireless Networking 1 01-25-2004 01:55 AM
Saving WEP Key DaCypher Linux - Wireless Networking 4 09-16-2003 12:11 PM


All times are GMT -5. The time now is 09:10 PM.

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