I have 2 VM's running in Hyper-v, the first VM is running Debian Jessie and the second one is running Stretch. I have been playing around with networking and have set a static IP address for eth0 in /etc/network/interfaces.
After setting the static IP I run
sudo service networking stop
sudo service networking start.
One the Jesse VM it will change the IP address on eth0 from the DHCP allocated IP to the static IP but on Stretch
it doesn't change the IP address.
I have compared /etc/network/interfaces for a difference but can't find any (both listed below).
Does anyone know why the change isn't taking affect on Stretch?
Jesse /etc/network/interfaces
Code:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.43.190
Stretch /etc/network/interfaces
Code:
source /etc/network/interfaces.d/*
# the loopback network interface
auto lo
iface lo inet loopback
# Primary interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.43.200