LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration