Unable to assign a static IP it will remove it every time I reboot and its super annoying to chase the ip and rework reverse proxy setups, various RDP connections, etc.
I cannot figure this out and its driving me crazy…
my configuration in Debian 11, (tried removing the .184 DNS thinking it was part of problem)
screenshot of the setup in hass, and then clicked save.
everytime, I create a static ip config from hass, on reboot appear another connection with different UUID as per below
I am then presented with the below on restart
Things I have tried
- editing interfaces only, and using only setup in HA both dont produce expected results.
- tried changing the mac address
- Changing the MAC address (because this runs in a HyperV VM)
- using command below to assign IP address
sudo ha network update eth0 --ipv4-method static --ipv4-address 192.168.1.242 --ipv4-gateway 192.168.1.1 --ipv4-nameserver 192.168.1.1 --ipv6-method disabled - even setting DHCP reservation on router doesn’t pull in the ip
Sometimes it even assigns three IP’s, as per image below, with two disconnected, and the third being the the IP I forced using GUI and CLI.
Someone please help, I am really advanced with IT and Linux, and Networking. I am willing to try anything at this point. I might reinstall the whole system and next up with be a full router reconfig. I cannot force any IP and leaving it DHCP is just not going to work. Again this is the ONLY VM out of 12 that do this, all guests are a mixed flavouring of OS’s.
Thank you in advance –
Mike K