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 4th June 2006, 04:46 PM
lemmingman Offline
Registered User
 
Join Date: Jun 2006
Posts: 9
Different wireless configs required for runlvl3 and runlvl5

I have been working with Linux for years, but the last week has been my first foray into the world of wireless networking and all I can say is we have a long way to go til we get to pain free, logical operation.

I am running FC5/2.2.16-1/ipw2200/ieee80211/Gnome on my Dell Insprion 8600. I am using NetworkManager to manage the networking in Gnome. This seems to be the only way to get it working with as little frustration as possible. I wont go into the limitations and frustrating little quirks it has, but I do have one functional problem that I am not sure how to get around.

All of the posts here, and around the internet that I have found deal with setting up wireless in a X environment. A lot of the time I will be Gnome for my general surfing and administrative functions. However, there will be many times when I will have to be in runlevel3 working from the command line only. When that happens I will need my wireless card active, my internal Broadcomm 100baseT active and sometimes I will have a PC Cardbus 100baseT card active as well. Each will be on its own network doing different things.

What confuses me is how to control my wireless at runlevel 3. If I am correct, NetworkManager is only operational in Gnome, so it won't be able to manage wpa_supplicant or the wireless card outside of Gnome. Do I manually configure wpa_supplicant and create a wlan? How do wireless_tools fit into all this? How do I manually configure wireless at runlevel 3 and not screw up my config for runlevel 5?

Thanks in advance,
Lemmingman

Last edited by lemmingman; 8th June 2006 at 12:22 AM.
Reply With Quote
  #2  
Old 8th June 2006, 12:24 AM
lemmingman Offline
Registered User
 
Join Date: Jun 2006
Posts: 9
bump to top.
Reply With Quote
  #3  
Old 8th June 2006, 01:12 AM
nt4cats Offline
Registered User
 
Join Date: Aug 2005
Location: Philadelphia, PA
Posts: 99
I have configured wireless using the /etc/init.d/network and /etc/sysconfig/networking/devices/* -- with mods to my /etc/init.d/network script that do an 'iwlist wlan0 scanning', look for my home and work networks, and automagically bring up the interface(s) corresponding to each network if they are present.

Nifty, and works at any runlevel where wireless is present. I know that this is not exactly what you are trying to accomplish, but you may be able to adapt my technique for your purposes.

Do things in this order if you want to duplicate my setup (a 'work' and 'home' auto-start ability for your wireless card):

1. Before making any changes to /etc/init.d/network use the system-config-network GUI tool to create/recognize your wireless adapter. This should create the scripts under /etc/sysconfig that allow you to type 'ifup wlan0' (replacing 'wlan0' with whatever your interface name ends up being) and have everything work. Do not proceed if you cannot easily bring your wireless connection up and down with 'ifup wlan0' and 'ifdown wlan0'.

2. Make sure you read the last sentence of step 1. Nothing else will work unless you follow this.

3.
Code:
[ddenardo@cylon ~] su - root
Password: ******
[root@cylon ~] cd /etc/sysconfig/networking/devices
[root@cylon devices ] cp ifcfg-wlan0 ifcfg-home
[root@cylon devices ] cp ifcfg-wlan0 ifcfg-work
4. Edit the 'ifcfg-home' and 'ifcfg-work' files making the following changes:
4a. Modify the ESSID= line as appropriate for home and work
4b. IMPORTANT Change the ONBOOT= setting to (no quotes) 'No'. It must be a mixed-case version of the word 'no'. Okay, 'nO' would work too, but that looks extra silly. This is the magic glue that makes this whole thing work -- the /etc/init.d/network script looks for "no" in a case-insensitive manner, the /sbin/ifup script looks for 'no' and 'NO' only.

5. If either of your home or work networks are secured with WEP create (or copy) keys-home and/or keys-work as needed.

6. Save a copy of your /etc/init.d/network script in case this doesn't work for you.

7. Grab the attached 'network' file that has my changes in it and put it in /etc/init.d/ with 755 permissions.

8. Edit the new /etc/init.d/network file:
8a. Line 135 -- replace (no quotes) 'HomeESSID' with your home ESSID. Replace (no quotes) 'wlan0' with your physical interface name.
8b. Line 136 -- replace (no quotes) 'WorkESSID' with your work ESSID. Replace (no quotes) 'wlan0' with your physical interface name.
8c. Line 138 -- make the same ESSID replacement as 8a, and if you used your own interface names in step 3 (instead of ifcfg-home) you have to change the "home" argument inside of the first set of parenthesis to match whatever follows the dash after 'ifcfg'.
8d. Line 141 -- make the same ESSID replacement as 8b, and if you used your own interface names in step 3 (instead of ifcfg-work) you have to change the "work" argument inside of the first set of parenthesis to match whatever follows the dash after 'ifcfg'.


I've attached network (/etc/init.d/network), network-orig (/etc/init.d/network prior to my customizations so you can do a diff). It is important that all of the ifcfg-* and keys-* files from /etc/sysconfig/networking/devices are also in /etc/sysconfig/network-scripts.

Warning: here is where I reveal a chilling degree of ignorance. On my machine when I create or edit a file in /etc/sysconfig/networking/devices the change usually magically appears in /etc/sysconfig/network-scripts, but not always. I haven't tried very hard to figure out why, so at this point I'm assuming magic gnomes or fairies or something like that.
Attached Files
File Type: tar network-files.tar (20.0 KB, 110 views)

Last edited by nt4cats; 8th June 2006 at 01:16 AM. Reason: Forgot to attach files!
Reply With Quote
  #4  
Old 8th June 2006, 01:19 AM
nt4cats Offline
Registered User
 
Join Date: Aug 2005
Location: Philadelphia, PA
Posts: 99
To put the end-result of my changes detailed above a different way ...

I (almost) never plug my laptop into a 10/100/1000 wired Ethernet network. I use WiFi (almost) exclusively. 99% of the time my laptop is either at home or at work. Prior to these changes, the first thing I had to do after powering up my laptop was type either "/sbin/ifup home" or "/sbin/ifup work" (no quotes). Now my laptop figures out where it is all by itself and starts the correct interface on boot so that the machine is online before it presents a 'login:' prompt.
Reply With Quote
Reply

Tags
configs, required, rl3, rl5, wireless

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
Secrets Required for Wireless Network Dark$un Servers & Networking 4 28th November 2008 12:17 AM
Wireless secrets required after successfully logging in first time acidal Servers & Networking 2 15th August 2008 02:50 AM
Arrrrg ... Passphrase Required by Wireless Network riffin-rich Servers & Networking 44 2nd January 2008 02:03 AM
Wireless Activation help required Maverick-23feb Hardware & Laptops 19 15th January 2006 03:38 AM
*Utter Newbie Help Required* - Wireless Internet andywhitehurst Servers & Networking 6 2nd April 2005 10:49 AM


Current GMT-time: 18:21 (Monday, 20-05-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