LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2006, 08:16 AM   #1
hockeyfan99
LQ Newbie
 
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
help with wireless autoconnect


hey all. I have a laptop. Whenever I want to switch to a different wireless network (IE at home or at school) I have to go into the /etc/network/interface file and uncomment the essid I want to connect to and comment the essid I was previously using in order to autoconnect. Is there a way to configure this so I don't have to do this ritual everytime I change my location? Autodetecting isn't a problem, it is autoconnecting that is my problem. I'm using Ubuntu Breezy Badger. Any help would be appreciated.

here is my /etc/network/interface file

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
	script grep
	map eth0

# The primary network interface
iface eth0 inet dhcp



iface wlan0 inet dhcp
pre-up /usr/sbin/wpa_supplicant -Bw -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
#wireless-essid school name
wireless-essid myHomeNetwork



auto eth0
 
Old 02-09-2006, 07:39 PM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Search manual for iwconfig:
man iwconfig
There is an entry in there which lets you specify the essid (access point) you want to connect with. Issue proper command with something like
iwconfig eth0 Home/school... that should bind it to that particular network.
 
Old 02-10-2006, 09:29 AM   #3
RMSe17
Member
 
Registered: Jul 2004
Posts: 31

Rep: Reputation: 15
What about having it to automatically bind and connect when it senses the network? I know in windows, with Intel wireless, you can have a bunch of network profiles stored in order of preference, where even if several networks exist in one area, it will connect to whichever is ranked higher in the list. How do you do that in Ubuntu?

Thanks,
RMSe17
 
Old 02-11-2006, 01:08 AM   #4
hockeyfan99
LQ Newbie
 
Registered: Jan 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by RMSe17
What about having it to automatically bind and connect when it senses the network? I know in windows, with Intel wireless, you can have a bunch of network profiles stored in order of preference, where even if several networks exist in one area, it will connect to whichever is ranked higher in the list. How do you do that in Ubuntu?

Thanks,
RMSe17

I'd love to know to! Anyone out there?
 
  


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
Broadcom Wireless (BCM4306) Wireless problems: modprobe ndiswrapper freezes HP Laptop shthap3ns Linux - Hardware 11 02-11-2007 01:53 PM
Autoconnect at boot - Speedtouch 330 Nosra Linux - Hardware 5 03-13-2005 08:19 AM
Qtella: can't reach autoconnect servers cure1245 Linux - Software 0 02-28-2005 01:00 AM
wireless problems; Broadcom 802.11G Mini PCI Wireless with redhat WS surfbass Linux - Laptop and Netbook 1 12-17-2004 01:48 PM
10.1 Network won't autoconnect at KDE start :( carl0ski Mandriva 4 12-17-2004 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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