6

I've been trying for the past few days to connect to my university wifi and can't do it no matter what I try. I have tried these:

Ubuntu 16.04 problems connecting to eduroam

How to connect to WPA2/PEAP/MSCHAPv2 enterprise wifi networks that don't use a CA_Certificate, like Eduroam

Cannot connect to WPA2/WPA Enterprise (PEAP and MSCHAP)

HOWTO: Wireless Security - WPA1, WPA2, LEAP, etc.

and a couple of others that got lost in my browsing history. I can connect normally on windows and on my smartphone. I also can connect to my home network perfectly (on Ubuntu). I've got no clue on what exactly the problem is and being a linux novice certainly doesn't help. What I know for sure (because I can see on the Android configuration) is that the network uses PEAP and I don't need a CA certificate or Anonymous identity.

Edit: Let me clarify. I enter my credentials or edit the network configuration. The network appears as remembered. If I double click it will start connecting and after some time it will ask for my username and password again, like the first time. No error message or anything.

3 Answers3

2

A workaround using your smartphone

While it may not be working for all smartphones, here is a workaround that works for my LG G5.

  1. Connect your smartphone with the university WiFi
  2. Share your smartphone's internet (Setting>Network>Tethering)
  3. Choose either USB tethering or Bluetooth tethering.
  4. Do not choose Wi-Fi hotspot as your smartphone cannot connect to a WIFI network and act as hotspot at the same time.
carch
  • 29
0

This was a bug in Ubuntu 18.04 as is explained in this thread - https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1748839

It has been fixed in the upstream of Ubuntu 18.04. So if you have been keeping your Ubuntu updated, the fix must be present in your system.

Just go to Wifi settings and click on Forget Connection for the network in consideration. Start afresh and you should be all good.

omerjerk
  • 147
  • 1
  • 2
  • 11
0

I know this is an old thread, but I wanted to share what worked for me in case it helps someone else down the line. I’m not an expert — just someone who got it working after some trial and error I’m using Pop!_OS but this should work for any Ubuntu-based system (hopefully).

There are a couple of options for connecting to Wi-Fi for most universities you want somthing like this (at least this is what works at UofT)

Security: WPA2 Enterprise

Authentication: PEAP

Inner Authentication: MSCHAPv2

CA Certificate: For UofT, I was able to select "No CA certificate is required", but check with your own university to be sure.

This setup connected, but it was unstable. I kept getting randomly disconnected. I had to go into my driver settings and turn off low power mode for me this looked like sudo nano /etc/modprobe.d/iwlwifi.conf and adding this line

options iwlwifi power_save=0

then save and run

sudo update-initramfs -u and then reboot

note that this can look diffrent depending on your chip/driver

Some things I tried that might sometimes help make it more stable (in moast cases not tho) and they can cuase issues if you move around campus alot are:

I turned off IPv6..

I set IPv4 to Manual instead of Automatic (DHCP). This really helped. To do this:

Set the following:

Address: use the IP you were given when it was working but unstable (so when it was automatic) go to terminal and type ip a that will give you somthing like ###.###.#.##/##

the first ###.###.#.## is the IP and just paste the full thing into into a CIDR to IPv4 Conversion to get the netmask (if you dont want to paste you IP somewhere online you can just put in any IP put keep the /## the same) to get gateway run ip route you get something like default via ###.##.#.# ...

the ###.##.#.# is your gateway Once you have that info, go back and set it manually.

you can also set your DNS

If that still doesn’t work and you don’t move your computer around much, you can set the BSSID to the strongest access point near you. This can help if your device keeps switching between routers. Use the command

    nmcli dev wifi list 

in a terminal to see the available networks and pick the BSSID with the best signal. Then enter that in your Wi-Fi settings under the Identity tab. This does lock you to one router though, so it might not be ideal if you move around a lot. after you do this and click apply make sure to turn wifi on and off or just run sudo systemctl restart NetworkManager (if appply doesnt work make sure you set no CA required)

(General advice if you are new to Linux NEVER run a sudo comand that a stranger (or even chat GPT) tells you unless you understand it. even if you trust them they may not know everything about how your syesyem works and could break somthing. thats why I also have the option to just turn wifi on or off or restart your computer)

As for the phone, I used KDE Connect and setting manual IPv4 on my laptop adn DNS helped make that work too. If your phone still can’t connect, you can go into your phone’s Wi-Fi settings, switch to a static IP, and set the same netmask and gateway as your laptop. Then pick an IP that’s close to your laptop’s (like one number higher). That worked for me. You might still have to manually add the phone in KDE Connect using its IP address, but once I did that, it connected and worked fine.

Hope this helps!