#DHCP suddenly not working anymore: `ifconfig` not found

1 messages · Page 1 of 1 (latest)

shy coral
#

After updating the Piper plugin/integration and going to bed, I woke up with a broken home assistant vm.
Took a little time figuring out what exactly was the problem, but now im pretty sure its because dhcp somehow broke as I dont get an ipv4 address:

# dhclient
/sbin/dhclient-script: line 83: ifconfig: not found
/sbin/dhclient-script: line 83: ifconfig: not found
/sbin/dhclient-script: line 83: ifconfig: not found

I also tried

ha net update eth0 -e && ha net update eth0

According to tcpdump on my host, there is like nothing going through port 67 or 68. (maybe relevant)

hassos: "17.0"
homeassistant: 2026.1.3
hostname: homeassistant
logging: info
machine: qemux86-64
machine_id: uh
operating_system: Home Assistant OS 17.0
state: running
supervisor: 2026.01.1
supported: true
supported_arch:
- amd64

resolved:

my nic card is dropping connections and thus breaks the bridge interface for the vm.

dense jetty
#

HAOS uses NetworkManager. What's ha network info look like?
To debug DHCP see here: #1424403935954866307 message
Also if you have a VM you surely have snapshots/backups for it you can easily restore?

shy coral
#

Hello :)
as requested:

# ha network info
docker:
  address: 172.30.32.0/23
  dns: 172.30.32.3
  gateway: 172.30.32.1
  interface: hassio
host_internet: false
interfaces:
- connected: true
  enabled: true
  interface: enp0s2
  ipv4:
    address: []
    gateway: null
    method: disabled
    nameservers: []
    ready: true
  ipv6:
    addr_gen_mode: default
    address:
    - fe80::a827:7df8:86c7:9eb9/64
    gateway: null
    ip6_privacy: default
    method: disabled
    nameservers: []
    ready: true
  llmnr: default
  mac: <hardcoded mac set in qemu>
  mdns: default
  primary: false
  type: ethernet
  vlan: null
  wifi: null
supervisor_internet: false

nmcli general logging level DEBUG domains DHCP4,DHCP6 returns nothing and journalctl -fu NetworkManager only shows docker network logs.
I do have some backups but only created from the webui and few weeks old.

dense jetty
#

The method is disabled.

#

Also the interface is not eth0.

shy coral
#

oh :D
also I was trying to simplify the network name sorry about that

dense jetty
#

Try

ha network update enp0s2 --ipv4-method auto
#

If that alone is not enough run in order ha network refresh, ha supervisor repair, ha host reboot.

#

Then check ha network info again.