27 October 2008

How to connect to eduroam with netcfg.

I'm now using ArchLinux, and having got a configuration which connects nicely to the fast-growing academic federal wireless network, eduroam. So if you have a login for eduroam, this might be of use to you.

Firstly, install netconfig and wpa_supplicant:

pacman -S netcfg wpa_supplicant

Then, add a profile for eduroam. To do this, create the file in /etc/network.d/eduroam and put the following in it:

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="no"
SECURITY="wpa-config"
ESSID="eduroam"
IP="dhcp"
TIMEOUT=30
WPA_CONF="/etc/wpa_supplicant.conf"

Note the lower case letters. Oh, and make sure that you replace wlan0 with the name of your wireless networking device. If you're not sure, typing iwconfig at the terminal should show you.

Now, create (or open) the file /etc/wpa_supplicant.conf and add the following to it:

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
  ssid="eduroam"
  key_mgmt=IEEE8021X WPA-NONE WPA-EAP
  eap=PEAP
  identity="abc123@institution.ac.uk"
  password="XXXXXXXXXXXX"
  ca_cert="/home/username/bhamuni.pem"
  phase2="auth=MSCHAPV2"
  priority=2
  auth_alg=OPEN
}

Also remember to edit it with your correct username and password. This is the same as the your university one.

You should be able to test that this works by just running 'netcfg-auto-wireless wlan0' (again subsitituting in your correct interface name for wlan0). It should then be connected.

To automate the process, add 'net-auto' (without the quotes) to the DAEMONS line in /etc/rc.conf, and then make sure that the line 'AUTO_NETWORKS=(auto-wireless wlan0)' is also somewhere in the file (mine is just above the DAEMONS line). This should then automatically connect if you boot up within range of the network.

Categories: All articles netcfg