LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-16-2007, 03:35 AM   #1
dmravaet
LQ Newbie
 
Registered: Nov 2005
Location: A very cold place
Distribution: Debian, Ubuntu, DSL
Posts: 15

Rep: Reputation: 0
For laptop - different networks in /etc/network/interfaces, or use network-manager?


Alright, I'm learning more and more, but still well within the "newbie" category, so forgive me if I'm overlooking something here. Also, just so you're forewarned, in trying to include all relevant information, this post has become quite long.

With my laptop running Ubuntu Edgy, I connect to my home WAP automatically through /etc/network/interfaces using the following:
Code:
auto eth1
iface eth1 inet dhcp
	pre-up wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -ieth1
where wpa_supplicant.conf was originally created by
Code:
sudo touch /etc/wpa_supplicant.conf
sudo wpa_passphrase MySSID MyPassphrase > /etc/wpa_supplicant.conf
Unfortunately, the pre-up line makes it so I cannot connect to the WAPs on campus. The quickest fix I've found so far is to have two copies of the different configurations saved as interfaces.1 and interfaces.2, where one has the pre-up command and the other doesn't, copy the applicable one to /etc/network/interfaces, reboot, and I can connect.

I find this to be quite tedious, and would rather just have something that will work automatically, without having to toy around with anything. Ideally, this would be through interfaces, unless using gnome-network-manager is the only real way to do so.

I saw something in "man interfaces" talking about mapping for different connections (home vs work was the example given), but am not quite sure how to get that to work.

Any help is greatly appreciated, and if I've left out any relevant information, please let me know and I'll take care of it. Thanks!
 
Old 03-16-2007, 02:15 PM   #2
SactoBob
Member
 
Registered: Jan 2007
Location: Sacramento
Distribution: Ubuntu 6.10
Posts: 63

Rep: Reputation: 15
Is there a special reason that you want to avoid network-manager-gnome? I find it a pretty ideal solution for my laptop, since I also have to connect to multiple networks.

n-m-g stores all the connection settings, so it is just point and click. But I have only been using it for a couple months, so let me know if there is something about it that is not good.

Bob
 
Old 03-17-2007, 04:28 PM   #3
dmravaet
LQ Newbie
 
Registered: Nov 2005
Location: A very cold place
Distribution: Debian, Ubuntu, DSL
Posts: 15

Original Poster
Rep: Reputation: 0
Aside the fact that I want to learn everything I can without GUI shortcuts, n-m-g will not automatically connect to a WAP that is not broadcasting its SSID (a setting I'd prefer to keep for security reasons).
 
Old 03-17-2007, 10:18 PM   #4
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
check out /usr/share/doc/wpa_supplicant/README.modes.gz, have a look at the roaming section. works quite well for me, i have 5 networks in mine and it all works automagically. (mixture of wpa, wep and open)
 
Old 03-18-2007, 12:42 AM   #5
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
Quote:
Originally Posted by dmravaet
Aside the fact that I want to learn everything I can without GUI shortcuts, n-m-g will not automatically connect to a WAP that is not broadcasting its SSID (a setting I'd prefer to keep for security reasons).
SSID broadcast disable is not a security setting, although it's been promoted by manufacturers as such. If you're using WPA with a strong password and broadcasting the SSID makes connectivity easier, you're giving up nothing and gaining convenience.
 
  


Reply

Tags
laptops, networking, ubuntu, 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
Network manager unable to connect to unsecured wireless - WPA networks fine :S phyre-x Ubuntu 8 05-16-2011 11:11 AM
Toshiba Laptop, no Network Interfaces, V Confused Geneset Linux - Laptop and Netbook 3 01-27-2007 04:50 PM
network-manager in FC6 tries to connect to non-existent network notiones Fedora 3 12-22-2006 10:31 PM
/etc/network/interfaces -- more than one wireless network? ErrorBound Linux - Wireless Networking 3 07-18-2006 03:09 PM
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 07:56 PM


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