I've just installed Ubuntu for the first time. Everything was working fine, but then I needed to add the VPN from my university. Since it didn't work I followed the recommended steps:
- Check Networkmanager by sudo NetworkManager --print-config
- Make sure that [ifupdown] is set to false
- Check that you have the line dns=default
- If not, change the NetworkManager.conf file and add in the main [main] section the line dns=default by sudo nano /etc/NetworkManager/NetworkManager.conf
- Disable systemd-resolve for letting NetworkManager completely manage the network connections
-
sudo systemctl stop systemd-resolved
-
sudo systemctl disable systemd-resolved
-
sudo rm -f /etc/resolv.conf
-
sudo systemctl restart NetworkManager
Now my ethernet connection stopped working, and there is a question mark on the 'Wired Conncections' symbol.
If I go to 192.168.0.1, I can access my router's page.
If I ping 8.8.8.8, I get 0% packet loss.
I'm not sure what else to share, please help.
The solution was just:
Still no clue what I'm doing, but it worked. Thanks to @mpboden!