Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th March 2008, 04:44 AM
gsgleason Offline
Registered User
 
Join Date: Jan 2007
Posts: 21
[fixed]shouldn't wpa_supplicant start before network?

I'm working on getting wpa_supplicant working for me. When I start the wpa_supplicant service, it sets up the wireless security and connects to my AP just fine, but since the network service has already attempted to bring up the wlan0 interface before that, dhclient doesn't happen.

It's better if I change S10network and S28wpa_supplicant in /etc/rc5.d/ to S10wpa_supplicant and S11network, respectively - that way the physical interface of the wireless interface is established before trying to bring the network in service, but it doesn't seem like i should have to do this.

I'm assuming the package maintainers know more than myself and I'm missing something.

Last edited by gsgleason; 2nd April 2008 at 05:49 PM. Reason: FIXED
Reply With Quote
  #2  
Old 28th March 2008, 05:30 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
http://home.nyc.rr.com/computertaijutsu/rhwireless.html

It gives a link to the bug report. The package maintainers have their reasons for doing it this way--the bad thing, which was fixed fairly quickly, was that wpa_supplicant was starting before message bus and failing.

Also look at Mike's writeup which is linked on that page. I've found it to be the best way--I was doing what you were doing before that.
In a nutshell, we put wpa_supplicant into rc.local rather than running it from rc.3 (or 5).
Anyway, the bug report, though it got pretty long, gives the maintainer's reasons and Mike's way works really well.
Reply With Quote
  #3  
Old 28th March 2008, 05:39 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Oops, an error in my earlier post (though explained correctly in the link I gave). wpa_supplicant does start from /etc/init.d/ after network, but the dhclient part goes into rc.local.
Reply With Quote
  #4  
Old 28th March 2008, 06:31 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
NetworkManager kicks off an instance of the supplicant *if* the connection requires it. Also the config iis trivial. Unless you are doing something exotic I'd avoid manually configuring the supplicant.
Reply With Quote
  #5  
Old 28th March 2008, 02:45 PM
gsgleason Offline
Registered User
 
Join Date: Jan 2007
Posts: 21
Quote:
Originally Posted by stevea
NetworkManager kicks off an instance of the supplicant *if* the connection requires it. Also the config iis trivial. Unless you are doing something exotic I'd avoid manually configuring the supplicant.
What do you mean by "exotic?"

I'm using WPA personal with a TKIP passphrase.

I'll read about NetworkManager...
Reply With Quote
  #6  
Old 28th March 2008, 03:04 PM
gsgleason Offline
Registered User
 
Join Date: Jan 2007
Posts: 21
Scrottro, thanks for the info. I'll look into it and let everyone know what transpires when I get more time to play with this. I appreciate your comments.
Reply With Quote
  #7  
Old 28th March 2008, 03:08 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
NetworkManager is a GUI network configuration tool. If you use it, then you shouldn't need to configure wpa_supplicant and the like.

From your original post, I was assuming that you're doing this from the command line.
NetworkManager is more like MS' thing in the lower right--I forget what it's called. NetworkManager is an icon in the upper right (because we take the high road where MS doesn't?).
Reply With Quote
  #8  
Old 28th March 2008, 03:14 PM
gsgleason Offline
Registered User
 
Join Date: Jan 2007
Posts: 21
Quote:
Originally Posted by scottro
NetworkManager is a GUI network configuration tool. If you use it, then you shouldn't need to configure wpa_supplicant and the like.

From your original post, I was assuming that you're doing this from the command line.
NetworkManager is more like MS' thing in the lower right--I forget what it's called. NetworkManager is an icon in the upper right (because we take the high road where MS doesn't?).
Indeed. I generally stay away from GUI configuration tools if I can as I don't like to be in the dark as to exactly what they're doing, which files they're editing, etc, as I like to be in control of all my configs and whatnot.

Unfortunately I'm at work and my Linux machine is at home, so I will get to play with this later tonight.
Reply With Quote
  #9  
Old 2nd April 2008, 05:38 PM
gsgleason Offline
Registered User
 
Join Date: Jan 2007
Posts: 21
Fixed

I set my wired and wireless interface to onboot=no in their config files, am not starting wpa supplicant either, and am starting NM.

It works automagically. It finds all the access points, shows encryption they're using, power levels, and connects just fine.

I'm glad I don't have to mess with my init scripts any more.
Reply With Quote
Reply

Tags
network, start, wpasupplicant

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't start wpa_supplicant sherlok Servers & Networking 1 21st April 2008 10:40 PM
Start wpa_supplicant before network mattcen Servers & Networking 4 5th February 2008 11:55 PM
how can i start wpa_supplicant before wlan0 when i boot? qvaddo Servers & Networking 0 1st April 2006 12:10 PM
FC4 + madwifi + wpa_supplicant. Authenticates, but cannot connect to network jspam Servers & Networking 2 11th December 2005 04:06 AM


Current GMT-time: 22:11 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat