Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7165

How to bring up eth0 in Metasploitable virtual machine?

$
0
0

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 dhcp

When 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 eth0

I had tried also

ip link set dev eth0 up/sbin/ifconfig eth0 up

and 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 ?


Viewing all articles
Browse latest Browse all 7165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>