I inherited VM server with two guests (with Debian) running with static IPs (they work fine).
I created new guest (Debian 8.5) and configured it with static IP through /etc/network/interfaces
in same way the other guests are configured (standard iface eth0 inet static
etc).
On this guest once a 24h IP reverses to DHCP configuration but after restarting eth0
it works with static IP again.
All guests are on the same vSwitch and in the same virtual network (connected to the same Physical Adapter).
I am managing VMs with vSphere Client 5.5.
/etc/network/interfaces
on the guests:
This one is working correctly:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.40
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8
This one is keep going back to dhcp:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 4.4.4.4