I have installed metasploitable on a virtual machine using vcenter. I had set it up and was trying to configure a static IP address to ethernet interface.When running ifconfig, there was no eth0 interface and only loopback interface appear.However, Here's my /etc/network/interfaces :
iface lo inet loopback# primary network interfacesauto eth0iface eth0 inet dhcpWhen I'm running ifup eth0, an error message say that :
eth0 : ERROR while getting interface flags : No such deviceBind socket to interface : no such deviceFailed to bring up eth0I had tried also
ip link set dev eth0 up/sbin/ifconfig eth0 upand restart every time the network service but I get the same error.
I had tried also to set a static IP address to eth0 and restart also the network service but it still the same problem always.Apparently, my machine does not have eth0 at all are there any other ways to resolve this problem ?