LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-27-2007, 07:37 PM   #1
DittoAlex
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Rep: Reputation: 15
How do I specify "security mode: open" in /etc/network/interfaces?


I am unable to associate to my AP unless I specify "Security mode: open" with the following command
Code:
iwconfig [interface] key open
How can I add this command to my /etc/network/interfaces? I tried adding the line
Code:
wireless-key open
but that errored out due to it being a duplicate of my encryption key line,
Code:
wireless-key [key]
 
Old 09-29-2007, 07:16 AM   #2
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
If you read the man page for iwconfigyou will find that you can accept open (unencrypted) connections as well as encrypted sessions. The code for this is exactly what you have here but just comment out the key line in /etc/network/interfaces that you already have there. As for enabling both... I am not sure you can, as both commands over ride each other!
 
Old 09-29-2007, 10:39 AM   #3
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
mechdave,

It's not a matter of encrypted vs. unencrypted. It's open vs. shared key WEP. Shared key requires the exchange of information prior to association where open does not. Both methods use WEP to encrypt the data.

DittoAlex,

I know how to do it with straight iwconfig, but not with your config file. What distro? (sounds like Debian-based) Can you post the file, with comments? We might be able to stumble through it.
 
Old 09-29-2007, 12:09 PM   #4
DittoAlex
LQ Newbie
 
Registered: Oct 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by 2Gnu View Post
I know how to do it with straight iwconfig, but not with your config file. What distro? (sounds like Debian-based) Can you post the file, with comments? We might be able to stumble through it.
Debian Etch 4.0r1

My /etc/network/interfaces is really very straight-forward:

Code:
iface ath0 inet dhcp
wireless-essid abcdefghij
wireless-key 1234567890
auto ath0
If it is not possible to do it through /etc/network/interfaces, perhaps I could script it to apply the 'iwconfig interface key open' command once ath0 comes up.

Last edited by DittoAlex; 09-29-2007 at 12:11 PM.
 
Old 09-29-2007, 03:11 PM   #5
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
You could certainly script it, but fixing the file would be "better."
I don't know the syntax, and was hoping the file was liberally commented. You might be better off posting this in the Debian forum.
 
  


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
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM
Samba security "permissions" in DOMAIN mode tisource Linux - Networking 3 05-09-2002 10:41 PM


All times are GMT -5. The time now is 08:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration