Hello:
I’ve been having a very strange issue for 2-3 days with a TV-Box with CoreELEC (S905X3; CE 21.1.1-ng).
When CoreELEC starts, it connects to the wired network (eth0) without any problem, with the “fixed” IP that I have assigned to it (192.168.1.40).
So far so good.
However, after some hours, it stops being connected.
If I do:
ifconfig
I see the interface
eth0
apparently active, but the device does NOT have an IP, and the only way it “gets” an IP again is by restarting the TV-Box. I restart it, and it gets an IP again through eth0 (192.168.1.40), at a certain point it loses that IP (I don’t know why, I don’t know if it’s due to a specific problem), and the only way I have to get an IP (eth0) again is by restarting the TV-Box.
And the cycle starts again.
Before this strange behavior, when it disconnected from the network for whatever reason (router crash, etc.), it would get an IP again without any problem. But not now; I don’t know if when it loses the IP via eth0 it doesn’t even try to get it again, or if it tries but doesn’t succeed until it restarts.
I DID NOT change anything in the software; I DID NOT change anything in the device’s configuration (in the last few days, I mean), I didn’t change anything in the router, but suddenly this happens.
Do you have any idea what the problem could be?
When the device “loses” eth0 IP, it still has an wlan0 IP (at this moment, 192.168.1.63), so I can connect to TV-Box via ssh.
Any useful command to “force” it to obtain IP with eth0 again without restarting?
For me the eth0 interface is very important because I connect this device (“server”) throgh Wireguard using eth0 IP. So, when IP 192.168.1.40 is off, WG “clients” can NOT connect to the “server”.
A bit more info from my side:
When I try this using Android, disconnecting ethernet cable and connecting it again, it does NOT get ethernet IP (same thing that with CoreELEC).
Perhaps I was wrong and it always was in this way before.
In CoreELEC, if I try:
# connmanctl disable ethernet
Disable ethernet
# connmanctl enable ethernet
Error ethernet: Device or resource busy
it never connects to ethernet until restart.