LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   gnome network manager and iwconfig (https://www.linuxquestions.org/questions/linux-networking-3/gnome-network-manager-and-iwconfig-822331/)

m_pahlevanzadeh 07-26-2010 09:16 PM

gnome network manager and iwconfig
 
Dear all,
I have debian box and use my adsl modem with wireless secured with key.
Of course i use gnome network manager and i connected without problem.
So, all of wireless'es module is load that i can connect.
Now when i use following command i get error:
Code:

debian:/home/mohsen# iwconfig wlan0 essid mohsen key  s:googooli
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Invalid argument.
debian:/home/mohsen#

Notice:
When i delete: "key s:googooli" i don't see error message but i need to this option.
It's very interesting that i know what does gnome manager use command for connecting to modem that it can connect but i can't connect.

b0uncer 07-27-2010 01:08 AM

First of all, remove/hide the key in your code block. Replace it with [key] or something. Then, if it's the key you really are using, change it on your devices right how. You aren't supposed to post any passwords or such here.

Second, what kind of encrypted network is it that you are trying to connect to (namely WEP or WPA)? If it's WEP, the weak one which you should not be using anymore, then iwconfig is your tool. But if it's WPA something, which you should be using, then iwconfig will not do, as it's made for WEP encrypted or unencrypted networks -- you'll need wpa_supplicant if you want to connect from the command line. I think it works for WEP encryption as well, in any case. Gnome uses NetworkManager (as far as I can tell), which you can't run from the text console.


All times are GMT -5. The time now is 03:07 PM.