Skip to content

Instantly share code, notes, and snippets.

@mvetsch
Last active February 6, 2024 08:36
Show Gist options
  • Save mvetsch/9bfdee7c56140eae2baa0be711fc8ded to your computer and use it in GitHub Desktop.
Save mvetsch/9bfdee7c56140eae2baa0be711fc8ded to your computer and use it in GitHub Desktop.
Wireless configuration with nmcli (NetworkManager ) for ETHZ (eth / eduroam)
nmcli connection add type wifi con-name eduroam ifname wlp3s0 ssid "eduroam" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
nmcli connection add type wifi con-name eth ifname wlp3s0 ssid "eth" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
# activate with
nmcli connection up eduroam --ask
nmcli connection up eth --ask
@LinasVidziunas
Copy link

<3

@pahlse
Copy link

pahlse commented Mar 18, 2021

Thanks for the help. It saved me a lot of hassle. :-)

I had to change ifname wlp3s0 to ifname wlan0. Check $ systemctl status NetworkManager to see which device you are running.

Copy link

ghost commented Dec 2, 2021

Just made an account to tell you:
myyyyyyyyyyy maaaaaaaaaaaan!

@threddast
Copy link

threddast commented Mar 21, 2023

Less secure (remember to delete bash history afterwards), but it also works by providing the option 802-1x.password <password>. Using --ask didn't work for me

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