I'm running a headless server on ODROID-C1 with Ubuntu 18.04. I connected to Wifi with wpa_supplicant and iwconfig shows the correct SSID association, but on startup it does not work - ping google.com returns Temporary failure in name resolution, and ping 192.168.1.1 (the router IP) returns connect: Network is unreachable.
To get the internet to work, I have to run dhclient -4 to fix it, and after a while it breaks again?
This happens with Ethernet and Wifi connections.
What is going wrong? What should I do to fix it permanently? (I don't want to have to run this command blind every time it is started)
Any help is appreciated.