![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Way Too Much Ubuntu
![]() Join Date: Jul 2006
Location: United States
Beans: 306
Ubuntu 9.04 Jaunty Jackalope
|
First of all this is my first HOWTO and it details how I got connected to Lehigh University's wireless network with wpa_supplicant. I decided to post this as I was having trouble finding info on this subject [of connecting to a University 802.1x network] and figured this might serve as a springboard to help others connect to their own 802.1x University networks.
**I recommend backing up all config files before editing them and take no responsibility for any damage this may cause** Ok, that said let's get started, first make sure you have the wpa_supplicant installed. Code:
sudo apt-get install wpasupplicant Code:
sudo gedit /etc/wpa_supplicant/wpa_supplicant.conf Code:
# for lehigh university
network={
ssid="lu"
scan_ssid=1
key_mgmt=IEEE8021X
eap=PEAP
phase2="auth=MSCHAPV2"
identity="your university login name"
password="your password"
}
Code:
sudo gedit /etc/network/interfaces Code:
wpa-driver wext wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf Restart networking Code:
sudo /etc/init.d/networking restart Hope this helps somebody ![]() *Adapted from http://coral.ie.lehigh.edu/~asm4/howtos/wireless.html
__________________
Registered Linux User #423733 / Registered Ubuntu User #4140 |
|
|
|
|
|
#2 |
|
Way Too Much Ubuntu
![]() Join Date: Jul 2006
Location: United States
Beans: 306
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
Ok, so I went home today and couldn't connect through Administration -> Networking to my WEP encrypted network. It seems wpa_supplicant takes control of the networking management and for those of you who happen to use this HowTo note that you will need to add any future network config to the wpa_supplicant.conf file eg:
Code:
# wireless for home
network={
ssid="your network name"
key_mgmt=NONE
wep_key0=
wep_tx_keyidx=1
}
See the link at bottem of previous post for full config file example.
__________________
Registered Linux User #423733 / Registered Ubuntu User #4140 |
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Jun 2005
Beans: 76
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
Thanks! I'm at LU as well and it works great!
|
|
|
|
|
|
#4 |
|
Just Give Me the Beans!
![]() |
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
better to use the facilities in /etc/network/interfaces
here is my conf: "DON'T CUT AND PASTE THE CODE MUST BE ADAPTED" Code:
auto eth1
iface eth1 inet dhcp
wpa-driver wext # this is the default and useless if set to wext only usefull if you need another driver (supported by wpa_supplicant
wpa-ap-scan 2
wpa-ssid <ssid>
wpa-scan-ssid 1
wpa-key-mgmt IEEE8021X
wpa-eap TTLS
wpa-anonymous-identity anonymous
wpa-phase2 auth=PAP
wpa-identity <username>
wpa-password <password>
"DON'T CUT AND PASTE THE CODE MUST BE ADAPTED" Code:
auto eth1
mapping eth1
script /etc/network/scripts/checkap
map uni <replace with the mac address of the campus ap>
map home <replace with the mac address of the home ap>
iface uni inet dhcp
wpa-ap-scan 2
wpa-ssid <ssid>
wpa-scan-ssid 1
wpa-key-mgmt IEEE8021X
wpa-eap TTLS
wpa-anonymous-identity anonymous
wpa-phase2 auth=PAP
wpa-identity <username>
wpa-password <password>
iface home inet dhcp
wireless-essid CAME
wireless-mode managed
(/etc/network/scripts/checkap) Code:
#!/usr/bin/python
import time, pyiw, sys, os
excepted = 'yes'
while excepted == 'yes':
try:
iface = pyiw.WirelessInterface(sys.argv[1])
excepted = 'no'
except:
excepted = 'yes'
time.sleep(1)
buffer = sys.stdin.read()
networks = buffer.split('\n')
i=0
while i<len(networks):
networks[i] = networks[i].split(' ')
i+=1
for node in iface.Scan():
for mac in networks:
if node ['ap_mac'] in mac:
print mac[0]
break
Last edited by visik7; October 9th, 2006 at 06:53 AM.. |
|
|
|
|
|
#5 |
|
A Carafe of Ubuntu
![]() Join Date: Oct 2006
Location: Pensacola, FL
Beans: 135
Ubuntu 7.04 Feisty Fawn
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
I am at UWF (Univ. of West FL) and no one seems to know how to connect to their wireless with linux. I have been using my laptop as a dual boot and been booting XP so that it is logged onto the network then rebooting and using linux. Some how the connection stays. I can even boot linux up an hour later and it will still be able to connect, it is only when I come in the next day that I can not connect without booting XP first.
Anyway, I used the first part of your thread and tried to connect without booting XP first and it connected. It maybe a fluke so I will try a few more times before saying it works. Being that the network allows for connections for long periods of time after original connection I can not truely have tested it. If it turns out that it works I would be happy to submit the information to the school so that others at our school can use linux on our wireless network. I have network manager conrtolling my connections and it seems to work well. I do not have to add the extra on this thread about being on different networks. If the network is there, it connects. I want to say thanks for the information and I am excited to see if it connects tommorrow. THANKS It would be neat if someone would explain why switching os would leave a availble connection. |
|
|
|
|
|
#6 |
|
A Carafe of Ubuntu
![]() Join Date: Oct 2006
Location: Pensacola, FL
Beans: 135
Ubuntu 7.04 Feisty Fawn
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
I tried the connection setup and it works half way. The config file does not seem to work. It could be that I error ed in setting up the config file. I have found that I can get a connection using network-manager that can be added to your system. It is not the manager that ubuntu uses as default, you have to add network-manager and disable the connections through the default manager so that this application can access the network card. If you do not disable the network card, network-manger will not be able to use/see the network card.
I connect to the network by: 1.click the network-manager icon 2.select “Connect to Other Wireless Network..” 3.change “Wireless Security:” to “WPA Enterprise” This expands the menu to have more options 4.type network name, example “uwf-argo-air” 5.change “EAP method” to “PEAP” 6.change “Key Type:” to “Dynamic WEP” 7.type user id in “Identity”, UWF sail lab I.D. 8.type user password in “Password”, UWF sail Lab password 9.Then connect. Network Manager appears to be using wpa_supplicant. If you are interested In seeing information from wpa_supplicant while connecting you can install and run wpa_gui. These applications are run as root so you would to type sudo wpa_gui to get it to work. I hope this is a process that really works. I will continue to test the connection to see if it is a fluke of success. Thanks everyone. a nice page and has how to install network-manager http://ubuntuguide.org/wiki/Dapper#H...etwork-Manager |
|
|
|
|
|
#7 |
|
Ubuntu Master Roaster
![]() Join Date: Oct 2004
Location: Netherlands
Beans: 2,968
Ubuntu 8.04 Hardy Heron
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
I'm having problems connecting to wireless university network (PEAP,WEP)
http://ubuntuforums.org/showthread.php?t=278603 Thanks for taking a look
__________________
my blog : http://ubuntudemon.wordpress.com Feisty/Gutsy/Hardy Quick Guide (including multimedia playback) http://ubuntuforums.org/showthread.php?t=567507 Ubuntu Customization Guide http://www.ubuntuforums.org/forumdisplay.php?f=159 |
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2006
Location: Copenhagen
My beans are hidden!
Ubuntu 7.04 Feisty Fawn
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
A fairly good and graphical guide to dapper 6.06 and a (common) uni wifi wep/peap 802.1x network...made my day
http://www.sai.uio.no/it/oppkobling/...linux-eng.html |
|
|
|
|
|
#9 |
|
5 Cups of Ubuntu
![]() |
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
There's lots of great information in this thread. I have a similar problem, but I'm trying to get a connection to a wired network over ethernet using PEAP-MSCHAPv2 and 802.1x. Can these configurations be adapted to use a wired NIC on eth0? What needs to be changed?
|
|
|
|
|
|
#10 | |
|
Just Give Me the Beans!
![]() Join Date: Jul 2005
Beans: 68
|
Re: HOWTO: ipw3945 connecting to a University Network (802.1x / PEAP)
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|