0

I'm currently using Ubuntu Server 16.04.2 in Virtualbox and I'm trying to set up a web server. It seems like my server or rather the network interface "enp0s3" doesn't have an IP address or an "inet addr", which, as far as I know, is necessary for the server to work.

This is an image showing my problem enter image description here

What can I do to change that? Are there any special network adapters necessary? Also, does it work with "enp0s3"? Because in many other guides I've just seen "eth0". I know that this occurred in older versions of Ubuntu but I'm rather a beginner so I'm not very sure about the difference.

And a different question: Should I actually try to disguise some of the information given in the picture or is that no risk?

Thanks for helping!

tinlyx
  • 3,230
Clapham
  • 101
  • Try to set your network adapter to "Bridged" mode in VM settings. That should get you the IP address – lewis4u Jul 15 '17 at 14:02
  • It seems like my server or rather the network interface "enp0s3" doesn't have an IP adress or an "inet addr" ... How do you come to this conclusion? Please add the output of cat /etc/network/interfaces and ifconfig t your question. "eht0" was the old default name for the main Ethernet interface but now Ubuntu changed the namespace for network interfaces and enp0s3 is the new default name for Ethernet interface – derHugo Jul 15 '17 at 20:40
  • I've actually resolved it now with a bridged adapter. Thank you for your help. – Clapham Jul 16 '17 at 21:01
  • Nice answer to same question can be found at: https://askubuntu.com/questions/585468/how-do-i-add-an-additional-ip-address-to-an-interface-in-ubuntu-14#585475 – Murphy's Prophet Apr 02 '18 at 23:56

0 Answers0