You are not logged in.

#1 2022-01-05 03:29:56

DJArch
Member
Registered: 2021-06-23
Posts: 19

Connecting to eduroam with nmcli

I am trying to connect to eduroam using

nmcli device wifi connect eduroam

and I get the following:

Error: Failed to add/activate new connection: Failed to determine AP security information

I have looked at https://wiki.archlinux.org/title/NetworkManager and https://wiki.archlinux.org/title/Iwd#WPA_Enterprise but I don't really understand what I am doing.

I created the file

 /var/lib/iwd/eduroam.8021x 

With the contents:

[Security]
EAP-Method=PEAP
EAP-Identity=anonymous@ubc.ca
EAP-PEAP-CACert=/full/path/to/CA-XXXXXYYYYBLABLABLA.cer
EAP-PEAPServerDomainMask=secure.wireless.ubc.ca
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=my_username@ubc.ca
EAP-PEAP-Phase2-Password=my_password

[Settings]
AutoConnect=True

This is the link where I got the network settings above https://it.ubc.ca/services/email-voice- … ss-eduroam

I appreciate any help in the right direction

Offline

#2 2022-01-05 08:12:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,296

Re: Connecting to eduroam with nmcli

You are starting to mix things, unless you configured network manager for the iwd backend then that eduroam file will expectedly not do anything for nmcli.

So you can either change that or try to invoke the nmcli command with the -a argument which should give you prompts for missing information. Alternatively see the nm-settings-keyfile man page for how to create a profile file for NetworkManager including a wpa-eap example. Or go to the official eduroam page where you might find a generator script for your institution that will generate NM profiles.

Last edited by V1del (2022-01-05 08:17:01)

Offline

Board footer

Powered by FluxBB