Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th December 2009, 02:09 AM
plasmonics Offline
Registered User
 
Join Date: Feb 2009
Posts: 69
linuxfedorafirefox
How to set up a wpa2 wireless connection in F15 using the ifcfg method

NetworkManager is a powerful tool for setting up a wlan connection, especially if you connect the laptop to multiple access points. One drawback is that the user accounts must be given access to the pass
phrase. Another is that there is no wlan connection in run level 3, because nm-applet is an X application.

If you connect to the same access point all the time, e.g., your own wireless router, a permanent connection via ifcfg might be more convenient. It is controlled by root. All user accounts have wireless access without knowing the underlying details. Further, there is a wireless connection in run level 3. After a lot of trial and error and Google searches, I was able to put together this guide by splicing together one step used in Slackware (from Alienbob's web page) with other steps outlined in this online article http://home.roadrunner.com/~computer...hwireless.html.

It is assumed that the appropriate kernel module for the wlan card is installed and that
$ iwconfig
shows a viable wlan0 interface. We are using DHCP. (If using static IP, edit ifcfg-wlan0.)

The following steps work on a Compaq Presario F756NR notebook with a Atheros AR242x 802.11abg WLAN card using the ath5k kernel module (without madwifi). I am using 64-bit F12. All commands are executed as root.

1.
Code:
$ yum install wpa_supplicant dhclient
2.
Code:
$ cd /etc/sysconfig && vi wpa_supplicant
Insert the following lines in the above file:
Code:
INTERFACES="-iwlan0"
DRIVERS="-Dwext"
OTHER_ARGS="-f /var/log/wpa_supplicant.log"
3.
Code:
$ cd /etc/wpa_supplicant && vi wpa_supplicant.conf
Insert the following lines, where Your_SSID is obvious and Your_PSK will be generated in step 4:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
# Set scan_ssid=1 if the access point is hidden.
  scan_ssid=0
  proto=WPA RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  ssid="Your_SSID"
  psk=Your_PSK
}
4. No quotation marks in this command:
Code:
$ /usr/sbin/wpa_passphrase Your_SSID Your_wpa2passphrase >> wpa_supplicant.conf
5. There is now a new "network" code block at the end of wpa_supplicant.conf. Copy the new SSID and PSK lines to the "network" block above at the locations shown in step 3. Delete the new "network" code block:
Code:
$ vi wpa_supplicant.conf
6.
Code:
$ chmod 600 wpa_supplicant.conf
7.
Code:
$ cd /etc/sysconfig/network-scripts && vi ifcfg-wlan0
Insert the following lines in the above file:
Code:
DEVICE=wlan0
ONBOOT=no
TYPE=Wireless
BOOTPROTO=dhcp
8.
Code:
$ service NetworkManager stop
$ chkconfig NetworkManager off
$ service wpa_supplicant start
$ chkconfig wpa_supplicant on
$ service network stop
$ chkconfig network on
9.
Code:
$ cd /etc/rc.d && vi rc.local
Insert the following lines in the above file:
Code:
/bin/sleep 1
/sbin/dhclient wlan0
On reboot, the wireless connection should be established.

Last edited by plasmonics; 25th April 2012 at 12:59 PM.
Reply With Quote
  #2  
Old 8th December 2009, 01:51 PM
Gödel Offline
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 1,102
linuxfedorafirefox
nice alternative, but more simply you could just do 'yum install cnetworkmanager' (the command line version) and have it connect from /etc/rc.local

Code:
cnetworkmanager -C <ssid> --wpa-pass=<passphrase>
Reply With Quote
Reply

Tags
connection, fedora, ifcfg, method, set, wireless, wpa2

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
WPA2 connection help :P lollysticky Using Fedora 2 23rd March 2009 01:59 AM
No Go? Fedora 8 & Intel Wireless WiFi Link 4965AGN & WPA2 Personal alphonsebrown Servers & Networking 2 25th November 2007 04:34 PM
Possible Wireless Solution (WPA2-Personal & Static IP Address) Underdonk Servers & Networking 2 16th November 2007 08:48 PM
Wireless WPA2 Internet EvoX Hardware & Laptops 1 5th June 2007 02:35 PM
Please post your ifcfg-wireless file. I need the original one. JesusDM Servers & Networking 11 2nd April 2005 04:29 PM


Current GMT-time: 12:46 (Friday, 24-10-2014)

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
Paranapanema Instagram Photos - Pentecoste Travel Photos - Tres de Mayo Photos on Instagram