LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-14-2007, 06:59 PM   #1
szandor
Member
 
Registered: Jun 2006
Posts: 32

Rep: Reputation: 15
linux wireless


need some help with a wireless connection. what's the best way to have 2 configs for wlan0? i have an unsecured ap at work and secured ap at home. to connect to work, i have a minimal ifcfg-wlan0 config file i use for ifup. if i want to use the one at home, i need to have a wpa-psk password. can i just create a wlan1 file and make an alias in the module conf file? or am i making it more complex than it needs to be?
 
Old 12-14-2007, 10:08 PM   #2
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
There's probably different tricks that you could use depending on the distro you use. I'll admit I haven't much experience with wireless other than using it with Arch. That being said, I used NetworkManager to connect for a while which worked pretty good for connecting to different networks, and should be available for different distros as well.
 
Old 12-16-2007, 06:02 PM   #3
szandor
Member
 
Registered: Jun 2006
Posts: 32

Original Poster
Rep: Reputation: 15
iwl3945 is buggy in itself. with network manager, i heard it's even flakier. i use fc8 with fluxbox and would rather just run a ifup/script than start network manager, connect to a network, then close network manager. i can also use iwlist scan to verify available networks i already use if i need to. i've never used network manager as i've never needed it. i just need to find out if i'm able to add multiple networks in my ifcfg file or if i need to create multiple configs/edit more files. i guess i have some research/experimentation to do.
 
Old 12-17-2007, 03:31 AM   #4
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello szandor

I use fedora 8 with a 3945abg wireless card and for me it works really well.

If you installed fedora from the DVD then you should be all set to go, if you installed from the live cd then you will probably have to run:

system-config-services

as root and enable the NetworkManager service. Don't forget to save any changes you make there.

Don't try manually setting up the card from system-config-network as the two methods of running the card are mutually exclusive.

If you are running KDE as your desktop you will then need to invoke KNetworkManager from the Main Menu - System. That sometime requires you at least restart KDE before it appears in your system tray.

Hope it turns out as reliable for you as for me.

I see that you say you don't use NetworkManager. It does make connecting the card very easy, but you will have great difficulty if you try to make the card work with static ip's.

Last edited by bbfuller; 12-17-2007 at 03:33 AM.
 
Old 12-17-2007, 11:04 AM   #5
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Probably a script using ifrename would allow you to change the interface name and then bring it up with the desired configuration?

http://linux.die.net/man/8/ifrename
 
Old 12-18-2007, 05:35 AM   #6
szandor
Member
 
Registered: Jun 2006
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bbfuller View Post
Hello szandor

I use fedora 8 with a 3945abg wireless card and for me it works really well.
once i set ONBOOT=no in ifcfg-wlan0 everything is normal. i only had problems after a couple of reboots. i thought i had updated the file along with ifcfg-eth0, but had not.

Quote:
Originally Posted by bbfuller View Post
as root and enable the NetworkManager service. Don't forget to save any changes you make there.
i see i can just modify the config files for wpa_supplicant without having to do anything else to connect to secured and unsecured networks. no need to use networkmanager. actually i would try using the autowifi scripts before networkmanager.

Quote:
Originally Posted by bbfuller View Post
Don't try manually setting up the card from system-config-network as the two methods of running the card are mutually exclusive.
the files have already been edited manually. but i will be going with wpa_supplicant soon.

Quote:
Originally Posted by bbfuller View Post
If you are running KDE as your desktop you will then need to invoke KNetworkManager from the Main Menu - System. That sometime requires you at least restart KDE before it appears in your system tray.
i'm using fluxbox and eterm. lots of eterms.

Quote:
Originally Posted by bbfuller View Post
I see that you say you don't use NetworkManager. It does make connecting the card very easy, but you will have great difficulty if you try to make the card work with static ip's.
well, the way i look at it, i mostly use linux for the shell. fluxbox and transparent, borderless eterms look really nice and i would prefer to execute a command via the shell than point and click until i get where i need to. i know i can start nm from the shell but as i use 2 wireless networks and 1 wired network, it's easier to just do ifup wlan0 or eth0 after booting up. also, both wireless networks are set up for dhcp but if i ever wanted to set up my home network with static ip's alone and forgo dhcp, i could always incorporate arping.
 
  


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
"Linux supported wireless card driver for Linksys wireless-g adaptor? northcoastrat Linux - Desktop 4 07-18-2008 06:33 PM

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

All times are GMT -5. The time now is 09:30 AM.

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