LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 05-12-2009, 08:48 AM   #1
mikeinf
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
iwconfig not working


Hello,

this is what I get using iwconfig to associate to the best AP:

Code:
mike@mike-laptop:~$ sudo iwconfig eth0 ap auto
Error for wireless request "Set AP Address" (8B14) :
SET failed on device eth0 ; Operation not supported.
What's wrong?

I'm using Ubuntu 8.10 with kernel version 2.6.27

Thanks,
Mike
 
Old 05-13-2009, 02:53 AM   #2
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Are you sure that "eth0" is the correct address for your wireless device? If your machine has an ethernet port, the wireless probably won't be "eth0" since this is normally reserved for the ethernet. Try "iwconfig" without options to see which devices are available.

It's also possible that your wireless doesn't accept this setting, but that's not very probable - did you try "any" in place of "auto"? Same result?

Last question: Why are you using the CLI? The NetworkManager window and panel widget offer lots of useful functions for connecting to wireless networks...

M.
 
Old 05-13-2009, 04:09 AM   #3
mikeinf
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry but I post the wrong piece of code..

Code:
mike@mike-laptop:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:"OpenWrt"  
          Mode:Managed  Frequency:2.432 GHz  Access Point: 00:14:Bla:bla:bla
          Bit Rate:48 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=95/100  Signal level=-10 dBm  Noise level=-91 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:5

pan0      no wireless extensions.
mike@mike-laptop:~$ iwconfig eth1 ap auto
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth1 ; Operation not permitted.
mike@mike-laptop:~$ iwconfig eth1 ap any
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth1 ; Operation not permitted.
as you can see it is still not working.

Thanks for your reply but also thanks for your last question:
I'm using CLI because I've noticed that with NetworkManager when I lose the network connection it tries to reconnect for let say 30 seconds; if it does not succeed it give up and it will try again in let say 2 minutes.
In the software I would like to develop I need some way to suggest him to try an association, whenever I know that there is one available, with the best AP.

If you know any other technique, please let me know.
Thanks again for your reply.

Mike
 
Old 05-13-2009, 09:30 AM   #4
mikeinf
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Step by step I'm getting closer to the final solution..

the problems related to the errors on
Code:
mike@mike-laptop:~$ iwconfig eth1 ap auto
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth1 ; Operation not permitted.
mike@mike-laptop:~$ iwconfig eth1 ap any
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth1 ; Operation not permitted.
have been solved, it was enough to act as super user
Code:
mike@mike-laptop:~$ sudo iwconfig eth1 ap auto
mike@mike-laptop:~$ sudo iwconfig eth1 ap any
still it doesn't work but in the man page I've just read you should commit your changes to get them working immediately.

BUT..

Code:
mike@mike-laptop:~$ sudo iwconfig wlan0 commit
Error for wireless request "Commit changes" (8B00) :
   SET failed on device wlan0 ; Operation not supported.
The same error as before!!
so why?

Thanks,
Mike
 
Old 05-28-2009, 04:41 AM   #5
netlynker
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Lightbulb "ifconfig eth1 down"

Dear,

Before you make change with iwconfig, you should down your interface by

#ifconfig eth1 down
then you can make changes with iwconfig.
After finish you have to
#ifconfig eth1 up


Hoping it will help you.

Netlynker


Quote:
Originally Posted by mikeinf View Post
Step by step I'm getting closer to the final solution..

the problems related to the errors on
Code:
mike@mike-laptop:~$ iwconfig eth1 ap auto
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth1 ; Operation not permitted.
mike@mike-laptop:~$ iwconfig eth1 ap any
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth1 ; Operation not permitted.
have been solved, it was enough to act as super user
Code:
mike@mike-laptop:~$ sudo iwconfig eth1 ap auto
mike@mike-laptop:~$ sudo iwconfig eth1 ap any
still it doesn't work but in the man page I've just read you should commit your changes to get them working immediately.

BUT..

Code:
mike@mike-laptop:~$ sudo iwconfig wlan0 commit
Error for wireless request "Commit changes" (8B00) :
   SET failed on device wlan0 ; Operation not supported.
The same error as before!!
so why?

Thanks,
Mike
 
Old 05-28-2009, 05:55 AM   #6
mikeinf
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you Netlynker but it didn't work..
 
  


Reply

Tags
access, ap, iwconfig, point, wifi, wireless


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 ath0 mode monitor - not working - atheros 5212 card Neil2008 Linux - Wireless Networking 1 10-26-2008 05:53 AM
iwconfig xcoaster1 Linux - Wireless Networking 15 04-03-2005 07:02 PM
iwconfig and ifconfig not working t3kops Fedora 1 07-17-2004 02:35 PM
iwlist and iwconfig not working Yukanojo Linux - Wireless Networking 3 03-17-2004 08:46 PM
Wireless: RedHat 9 + 3CRSHPW796 (ADM8211) = iwconfig not working Guru3 Linux - Wireless Networking 1 11-28-2003 02:20 PM


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