I have currently issues with my ubuntu installation, as it seems to lose internet access randomly. I have struggled to get it to work in the first place, but now I think the drivers finally stick. I usually had to reinstall the r8125 realtek drivers every reboot, but the DKMS version seems to work for a time. Then I am disconnected, and after fixing it, it works fine until next reboot.
Today, after an hour the computer lost connection to the internet. The working connection profile was used, and the only abnormal thing I noticed is that it no longer had an ip4 address shown in the settings, but was otherwise fine. I had to disable/enable the connection and then it worked. I am connected to a network where I get a dynamic IP adress, but I assume Ubuntu is capable of figuring it out itself.
What can I do to try to figure out what's going on and/or fix this?