Using eduroam on terminal

Log on to eduroam using the terminal

There is a possibility to use the terminal to connect to eduroam. Create a file called /etc/wpa_supplicant/wpa_suppliant.conf

network={
       ssid="eduroam"
       scan_ssid=1
       proto=WPA
       key_mgmt=WPA
       pairwise=AES
       eap=TTLS
       phase2="auth=PAP"
       identity="your_student_or_DTU_id@dtu.dk"
       password="your_password"
       priority=1000
}

Logging on to eduroam can then be done by running the following command:

wpa_supplicant -Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf -d -i(name of your interface)

to find out the name of your interface, you can run:

iwconfig

which should give you output that looks similar to this:

lo        no wireless extensions.
eth0      no wireless extensions.
wmaster0  no wireless extensions.
wlan0     IEEE 802.11abg  ESSID:"eduroam"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:1C:0E:42:A9:71
          Bit Rate=1 Mb/s   Tx-Power=14 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:*** [2] Security mode:open
          Power Management:off
          Link Quality=79/100  Signal level:-55 dBm  Noise level=-127 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

In the above case, the name of the interface is wlan0