I've finally installed the drivers for my wireless adapter, however, I can't seem to find anything explaining out to connect to a WPA2-Enterprise connection. I've found many WPA/WEP/WPA2 explanations, however, these don't solve my situations.

Is there any way to do this? I'm currently CLI only, thanks!


You can use nmcli

# nmcli con add type wifi ifname wlan0 con-name CONNECTION_NAME ssid SSID
# nmcli con edit id CONNECTION_NAME
nmcli> set ipv4.method auto
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set 802-1x.identity USERNAME
nmcli> save
nmcli> activate

You may also need to add

  • nmcli> set 802-1x.password PASSWORD
  • nmcli> set 802-1x.anonymous-identity ANONYMOUS-IDENTITY
  • nmcli> set wifi-sec.key-mgmt wpa-eap

wpa_supplicant is the answer. It supports WPA-Enterprise and several EAP methods. I connect to my home network by executing:

wpa_supplicant -i wlan0 -B -c /path/to/wpa_supplicant.conf

Here is an example of configuration file. It's all about configuring this file to match your connection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.