You are not logged in.

#1 2010-11-23 09:31:24

dillesca
Member
From: Vancouver, British Columbia
Registered: 2010-11-22
Posts: 14

[SOLVED] Assistance Connecting WPAIP

Hello.

I have spent some time looking up how to write a netcfg configuration file, and I have to finally stop and admit that I am shooting blindly and do not understand what I am doing. I hope someone will take the time to reply to this.

I have the following configuration file, which is a mix of the file /etc/network.d/wireless-wpa-configsection, and an example file sample available on http://www.it.ubc.ca/internet/wireless/ … Setup.html (scroll to the bottom to see). As the website states, the following may not apply to the ArchLinux distribution. I do not know enough to know what to change, however.


CONNECTION='wireless'
DESCRIPTION='Network configuration for UBC Secure'
INTERFACE=wlan0
SECURITY='wpa-configsection'
ESSID='ubcsecure'
IP='dhcp'
CONFIGSECTION='
    ssid="ubcsecure"
    scan_ssid=1
    key_mgmt=WPA-EAP
    proto=WPA2 WPA
    eap=PEAP
    group=CCMP TKIP
    pairwise=CCMP TKIP
    ca_cert="/etc/ssl/certs/Thawte_Premium_Server_CA.pem"
    identity="username"
    password="password"
    phase1="peaplabel=0"
    phase2="auth=MSCHAPV2"
    priority=10'

EDIT:

I added the lines TIMEOUT=120, DHCP_TIMEOUT=60, and PRE_UP=' iwconfig $INTERFACE essid $ESSID' to the pre-configsection section. The relevant output from "dmesg", which I am reading may be relevant, is:

iwlagn 0000:03:00.0: ACTIVATE a non DRIVER active station id 0 addr 00:21:04:30:f2:00
wlan0: deauthenticating from 00:21:04:30:f2:00 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: direct probe to 00:1e:f7:eb:16:c3 (try 1)
wlan0: direct probe to 00:1e:f7:eb:16:c3 (try 2)
wlan0: direct probe to 00:1e:f7:eb:16:c3 (try 3)
wlan0: direct probe to 00:1e:f7:eb:16:c3 timed out
wlan0: direct probe to 00:1e:f7:eb:16:c3 (try 1)
wlan0: direct probe to 00:1e:f7:eb:16:c3 (try 2)
wlan0: direct probe to 00:1e:f7:eb:16:c3 (try 3)
wlan0: direct probe to 00:1e:f7:eb:16:c3 timed out

Last edited by dillesca (2010-11-25 23:00:52)


---Lenovo T510--Intel(R) Core(TM) i7 CPU M620@2.67GHz---x86_64---4GB RAM---NVIDIA NVS 3100---
---320GB Seagate Momentus 7200.4 Series Hard Drive---
----xfce4---2.6.36-ARCH---

Offline

#2 2010-11-25 22:59:15

dillesca
Member
From: Vancouver, British Columbia
Registered: 2010-11-22
Posts: 14

Re: [SOLVED] Assistance Connecting WPAIP

I humbly state that I have "figured it out", in the sense that I read through the /etc/wpa_supplicant.conf file and used the information there to arrive at the following simplified /etc/network.d/ubcsecure configuration:

CONNECTION='wireless'
DESCRIPTION='Network configuration for UBC Secure'
INTERFACE=wlan0
SECURITY='wpa-configsection'
ESSID='ubcsecure'
IP='dhcp'
CONFIGSECTION='
    ssid="ubcsecure"
    key_mgmt=WPA-EAP
    eap=PEAP
    ca_cert="/etc/ssl/certs/Thawte_Premium_Server_CA.pem"
    identity="myname"
    password="password"
    phase1="peaplabel=0"
    phase2="auth=MSCHAPV2"'

I leave this here for any UBC students who make the switch to ArchLinux (which I strongly recommend) and would like to know how to connect to the university wifi network.

ubcsecure netcfg configuration file connecting to ubcsecure archlinux using netcfg to connect to ubcsecure connecting to ubcsecure using netcfg

Last edited by dillesca (2010-11-25 23:02:27)


---Lenovo T510--Intel(R) Core(TM) i7 CPU M620@2.67GHz---x86_64---4GB RAM---NVIDIA NVS 3100---
---320GB Seagate Momentus 7200.4 Series Hard Drive---
----xfce4---2.6.36-ARCH---

Offline

Board footer

Powered by FluxBB