Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-30-2003, 11:28 AM   #1
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
Question iwconfig ( wireless lan ) questions

Today I installed slackware 9.1 on my laptop. I have pcmcia wireless Lucern Cabletron 802.11 card.
I want to make my wireless lan work ( which connects me to the internet ) and in IRC a guy told me to use iwconfig to set it up.
I used iwconfig eth0 --help and got aware of the options, but they dont work
Only two worked - to change the SSID and the Nickname of the wireless network. The command for the network key ( which I should enter, so my wireless lan work ) is nic. The options if I remember right are {NNNN|off} and I tried iwconfig -eth0 nic *key* or iwconfig -eth0 nic on but they wouldnt work. Can you please help with this - how to enter those iwconfig settings and explain if I have to edit some other settings.
Thanks in advance! I will really appreciate any help. Peace

Last edited by Belize; 11-30-2003 at 11:30 AM.
Old 11-30-2003, 02:50 PM   #2
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
To set WEP keys, use "enc" or "key", and no "-" in front of "eth0".
Here is the relevant snippet from "man iwconfig":

Used to manipulate encryption or scrambling keys and security 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] (without entering any key
off and on disable and reenable encryption.
The security mode may be open or restricted, and its meaning depend on the card used. With most
card, in open mode no authentication is used and the card may also accept non-encrypted ses-
sions, whereas in restricted mode only encrypted sessions are accepted and the card will use
authentication if available.
If you need to set multiple keys, or set a key and change the active key, you need to use multi-
ple 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]

This should help you figure it out. BTW, which of the iwconfig params really
works is entirely dependent on the driver (and the card).
Old 11-30-2003, 03:28 PM   #3
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
I spelled incorrectly the commands I tried. All commands I tried were without that - before eth0.
And I type iwconfig eth0 key SOMETHING or iwconfig eth0 enc SOMETHING and it doesnt work. Maybe cause I dont enter the key in HEX ? How can I ?


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
Unable to configure wireless NIC with iwconfig essdeeay Linux - Wireless Networking 1 12-10-2004 04:56 PM
Debian: How do I set wireless (iwconfig) options at boot? muzicman82 Linux - Wireless Networking 1 06-06-2004 11:57 AM
iwconfig ( wireless lan ) questions Belize Linux - Wireless Networking 10 12-02-2003 02:28 PM
Wireless: RedHat 9 + 3CRSHPW796 (ADM8211) = iwconfig not working Guru3 Linux - Wireless Networking 1 11-28-2003 01:20 PM
Wireless problem (iwconfig) WhoDang Slackware 2 04-19-2003 02:15 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:21 AM.

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