Doesn't connect to LAN

I’m using a wired network. One day, the Home Assistant server just didn’t connect. I rebooted both it and the network, I’ve plugged in other things to the network to check they work.

When I log in as root and type “ha network info eth0” it says:
enabled: true
interface: eth0
ipv4:
address: []
gateway: null
method: disabled
nameservers: []
ipv6:
address:
- 2a02…
- fe80 … etc
gateway: fe80…etc
method: auto
nameservers:
- 2a02 etc
- 2a02 etc
primary: true
type: ethernet
vlan: null
wifi: null

If I try “ha network update eth0 -e” I just get a timeout:
Post “http://superuis/turk/interface/etho/update”: context deadline exceeded (Client. Timeout exceeded while awaiting headers)

Any ideas how I can reconnect to the LAN?

Did you try the following command as root:

ifconfig eth0 up

If I try that (also tried ipconfig eth0 up), then I get “/bin/ash: ipconfig not found”. What am I doing wrong? Also tried “ha ipconfig…” and it says unknown command. Thank you!

Spot the difference

Yes, I tried ifconfig - when it didn’t work I wondered if it was a typo so I tried ipconfig (I’m used to windows!). So I’ve tried both with the same result. Thanks for your help though.

try to change this first to either auto or static/manual
… that is for the ipv4, unless you only want ipv6

net up eth0 --ipv4-method auto

Just tried that and response is:
ha > net up eth0 --ipv4-method auto

Error: Can’t update config on eth0: Connection ‘Supervisor eth0’ is not available on device eth0 because device has no carrier

Thank you!

which HA-system are you running, and on which OS ?
PS: Check ur cable, in both ends also… always as first step :wink:

1 Like

I’ve already tried 2 cables, and both work with my PC, neither with the PI… but despite the error message, after another reboot it seems to be working again, so I guess that must have fixed something, thank you!

I’m on Home Assistant OS 5.9 and Home Assistant Core 2021.1.5.

Thanks so much for your help everyone!

ok, time for some “adjustment” maybe ?

Yes, now I’m connected this will be my first job!