No network after reboot

RayzenMat

New Member
Jul 12, 2018
11
0
1
29
Hello,

I encounter a problem with a virtual machine, at each restart, after the connection I get no network access.
I must use these commands 'ifdown eth0' then 'ifup eth0' to finaly get access to the internet again. Here is the network configuration of the mentionned virtual machine :

Code:
 cat /etc/network/interfaces                              root@PSSD-UMR-TEST
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

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 static
        address 192.168.X.X
        netmask 255.255.255.0
        gateway 192.168.X.X