Skip to content

Instantly share code, notes, and snippets.

@BollaBerg
Last active November 11, 2025 11:00
Show Gist options
  • Select an option

  • Save BollaBerg/7a3fc9744d5bf6eb16f8aab5928df755 to your computer and use it in GitHub Desktop.

Select an option

Save BollaBerg/7a3fc9744d5bf6eb16f8aab5928df755 to your computer and use it in GitHub Desktop.
Configure Eduroam for NMCLI
# Heavily inspired by https://haluk.github.io/posts-output/2020-10-19-linux/
# Replace <IFNAME> with wifi device name
# Replace <IDENTITY> with student identity (i.e. <USERNAME>@ntnu.no)
# Replace <PASSWORD> with user password
nmcli con add \
type wifi \
ifname <IFNAME> \
con-name eduroam \
ssid eduroam \
ipv4.method auto \
802-1x.eap peap \
802-1x.phase2-auth mschapv2 \
802-1x.identity <IDENTITY> \
802-1x.password <PASSWORD> \
wifi-sec.key-mgmt wpa-eap
@MichaelTennant
Copy link

wifi-sec.key-mgmt's value of wap-eap is a typo, should be wpa-eap instead

@BollaBerg
Copy link
Author

BollaBerg commented Jun 20, 2023

wifi-sec.key-mgmt's value of wap-eap is a typo, should be wpa-eap instead

You are absolutely right, @MichaelTennant , thanks for the heads up! I don't even listen to Cardi B... Fixed in revision 2 🐱

@sai-sy
Copy link

sai-sy commented Oct 21, 2025

this was super helpful. Thank you! This needs to be way higher on google search result and get on some archlinux forum threads!

@Anfuehrungszeichenx2
Copy link

Worked for me. thanks!

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