Connecting Raspberry Pi to WPA2 Enterprise Wireless Network

While working on “Building an affordable live streaming camera using a Raspberry Pi” project, I found that the Raspberry Pi is not able to connect to University’s secure wireless network. I found that the cause of the problem is WPA2 Enterprise which is used by most of the institutions like universities and big companies. I hope this blog post would help you if you are facing with the same problem.

First edit wpa_supplicant.conf file located in /etc/wpa_supplicant/ folder.
Open a terminal and type the command below:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Use your wireless network ssid, username and password for the red colored parameters.

I was able to get this to work with some slight tweaking. In the network interfaces file I used ‘manual’ instead of ‘dhcp’ and it worked perfectly (was not able to get it to work otherwise). Thank you!

I set the network interface file with “manual” instead of “dhcp” (otherwise it cannot connect to wifi), but I keep got wpa_state=DISCONNECTED in wpa_cli status (I have stable wifi internet connection tho). Any solutions? And I cannot go headless over ssh might because of the DISCONNECTED status?

Once change I had to make to get it to work:
pre-up wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant
to
pre-up wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf