-
-
Save mahboobkarimian/81c752a17a2007a2d0b4f5e6bf8a2c86 to your computer and use it in GitHub Desktop.
Connect to PEAP access points in school using nmcli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Linux, specially Ubuntu, sometimes there is problem with connecting to Enterprise networks using GUI NetworKManager. | |
This is the situation where nmcli is needed. | |
* In terminal: | |
nmcli con add type wifi ifname wlp3s0 con-name work-wifi ssid work-ssid | |
nmcli con edit id work-wifi | |
* Then enter the following: | |
nmcli> set ipv4.method auto | |
nmcli> set 802-1x.eap peap | |
nmcli> set 802-1x.phase2-auth mschapv2 | |
nmcli> set 802-1x.identity myusername | |
nmcli> set 802-1x.password mypassword | |
nmcli> set wifi-sec.key-mgmt wpa-eap | |
nmcli> save | |
nmcli> activate | |
Note that if you have more problems it's also good to change the Wifi backend from wpa_supp to iwd. | |
From | |
- https://askubuntu.com/questions/262491/connect-to-a-wpa2-enterprise-connection-via-cli-no-desktop | |
- https://blog.khmersite.net/2018/08/connect-to-a-wpa2-enterprise-connection-using-nmcli/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment