LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-27-2010, 07:06 AM   #1
chutsu
Member
 
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255

Rep: Reputation: 31
trying to connect to wifi with iwconfig, but cannot set key...


I have read the docs, and did the following

lets assume my essid is ABC-WIFI
and that my ASCII password is 1234PASS

sudo iwconfig eth1 mode managed
sudo iwconfig eth1 essid “ABC-WIFI”
sudo iwconfig eth1 key s:1234PASS

My problem is that it fails here, when setting the key...
it reports:

Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth1 ; Invalid argument.

I have checked that eth1 is indeed my wireless interface, I checked that through iwlist.

Soooo... what should I do now??
Thanks
 
Old 05-28-2010, 05:23 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
iwconfig works with wireless devices. Eth1 - is a wired device.
What is output of:
iwconfig

Thanks.
 
Old 05-29-2010, 12:34 PM   #3
chutsu
Member
 
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255

Original Poster
Rep: Reputation: 31
The output of iwconfig is:

lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11 Access Point: Not-Associated
Link Quality:4 Signal level:194 Noise level:170
Rx invalid nwid:0 invalid crypt:89 invalid misc:0

vboxnet0 no wireless extensions.
 
Old 05-29-2010, 01:13 PM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
eth1 can be a wireless interface, not wired, as seems to be your case.

Quote:
vboxnet0 no wireless extensions.
vboxnet0 worries me, have you omitted to tell us that you are referring a "virtual machine"?

I have no experience of VMs, but think that you may have to grant, or give privileges to, your virtual machine access to real hardware.
 
  


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
iwconfig essid XXX key XXX wont connect to router. FC9 dell 1501 knockout_artist Fedora 0 09-08-2008 10:55 AM
cannot connect on wifi with WEP key 128bit PETROSHP Linux - Wireless Networking 1 11-07-2007 02:31 PM
connect to wifi WPA pre-shared key from a command prompt, how? bubazoo Linux - Wireless Networking 2 04-21-2007 07:06 PM
iwconfig cannot set WEP key muteki_sykes Linux - Wireless Networking 7 05-27-2006 05:07 PM
Planet PCMCIA WiFi card can't change WEP key set shneoh Linux - Wireless Networking 2 07-03-2004 12:04 PM


All times are GMT -5. The time now is 01:40 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