LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   iwconfig ( wireless lan ) questions (https://www.linuxquestions.org/questions/slackware-14/iwconfig-wireless-lan-questions-121266/)

Belize 11-30-2003 11:28 AM

iwconfig ( wireless lan ) questions
 
Greetings.
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

bbeers 11-30-2003 02:50 PM

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

key/enc[ryption]
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
value).
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 s:password [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).

Belize 11-30-2003 03:28 PM

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 ?


All times are GMT -5. The time now is 05:40 PM.