raspberrypi.html

How to connect a Raspberry Pi to a WPA2 Enterprise Network

tags: Auburn, Auburn University, WPA2, WPA2 Enterprise

Auburn University provides instructions to Ubuntu users on how to connect their hosts to the Auburn University WiFi Network.

Many Universities use WPA2 Enterprise authentication on their networks. This allow you to track WHO is connected where and have granular control over who's able to access the WiFi network.

For tinkerers and experimenters with Raspberry Pi, Particle Photon, and other embedded systems, this poses a problem because many simplier IoT devices do not support WPA2 Enterprise natively or not without some hassle.

Raspbian Jesse and earlier will display a WPA2 Enterprise network from its dropdown list, but it will be greyed out. The workaround is to manually connect to it:


Step 1:

Open Terminal or Command prompt.  Type in "sudo su".  
Enter the password you set up.  Default is blank.  

Linux does not show passwords as you type so don't worry if you don't see anything.

 

Step 2:

Edit the wpa_supplicant.conf file. Use your favorite editor such as nano or vi.

vi /etc/wpa_supplicant/wpa_supplicant.conf

Step 3:

Add the following to your wpa_supplicant.conf file. You will have to update the identity and password part to reflect your enterprise credentials.

network={
        ssid="AU_WiFi"
        # For hidden SSIDs
        scan_ssid=1
        mode=0
        key_mgmt=WPA-EAP
        pairwise=CCMP TKIP
        identity="XXXXXXXX"
        password="XXXXXXXX"
        phase1="peaplabel=0"
        phase2="auth=MSCHAPV2"
        }

Step 4:

Type in ":wq" to "w"rite the changes and "q"uit vi
Type in "exit" to exit su.
Type in "exit" to exit terminal

Step 5:

Reboot the PI, and AU_WiFi should connect.

Last Updated: Apr 09, 2019