Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@markuskreitzer
Created July 30, 2018 16:15
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markuskreitzer/1e223c02ef2a9a3f836db7984011b53b to your computer and use it in GitHub Desktop.
Save markuskreitzer/1e223c02ef2a9a3f836db7984011b53b to your computer and use it in GitHub Desktop.
How to connect a Raspberry Pi to a WPA2 Enterprise Network

How to connect a Raspberry Pi to a WPA2 Enterprise Network

tags: Auburn, Auburn University, WPA2, WPA2 Enterprise

Auburn University is gracious enough to provide 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:

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

vi /etc/wpa_supplicant/wpa_supplicant.conf

Step 2:

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"

        
}
@LordJashin32
Copy link

Thanks for this @elec3647

@markuskreitzer
Copy link
Author

Thanks for this @elec3647

Welcome. You can encrypt the password field too. Just do a man on wpa_supplicant.

@ALD136mtz
Copy link

Hi, thank you for the post. I have been trying to connect my Raspberry pi Zero W to the school network. So far, it seems like I have it connected since the wifi icon is in blue, and the school network has a checkmark, although it is in gray, but I am still not getting any internet. Have you come across a similar problem or a possible solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment