Ethernet disconnects after a few minutes
My ethernet connection keeps disconnecting after a few minutes. What the heck?
I fell for this trap today: installed Armbian in a new OrangePi to serve as DHCP for my local network. Connected a cable to ethernet port and to my LAN, then fired up an ssh connection.
Then I started nmtui
to set things up, because is just easy.
I selected my eth0
connection and changed the IPv4 section to set a static IP, DNS and all that. But here's the thing: this <Automatic>
option here must be changed to <Manual>
for this setup to work.
Well, I did not notice that at first, and this machine would then try to get an IP from itself (or at least is what I concluded) and then disconnect from the network.
My SSH connection started fine and hanged after some minutes. Pinging the same machine would return "Host is down". To fix that, I just had to unplug the ethernet cable and plug it back on. Only to get a disconnection again after a few minutes.
So, there you go!
After searching for "ethernet auto-disconnects ubuntu", and all other sorts of Google searches, I came back to this screen and found the problem!
In case you are curious, this is how you can set up DHCP and DNS with a local machine.