[solved] Network reconficuring itself

I have LAMP VM that is resetting to dhcp on reboot no matter what. I'm trying to configure it for static.

I tried editing /etc/network/interfaces, removing the "undefined interfaces"

I tried configuring from webmin

I tried running confconsole

Settings are applied and the IP changes immediately, but when I reboot someone rewrites /etc/network/interfaces to DHCP.

I've been trying  and searching for hours now, can anyone help?

Linux version 4.2.6-1-pve (root@elsa) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Wed Dec 9 10:49:55 CET 2015

Jeremy Davis's picture

If you set it elsewhere (i.e. not via confconsole) then confconsole will overwrite it. I regularly test images (KVM installed from ISO) and using confconsole to set a static IP consistently works fine for me. So I wonder what is going on for you?

The only scenario I could imagine where it would keep giving you a DHCP IP (after setting static in confconsole) would be if you were running in a container (LXC, e.g. in Proxmox, or similar). In that scenario the host can override the guests networking config. The best way to resolve that is to set a static IP for your container (on the host).

Yes. It was Proxmox.

Thank you!!

Post new comment