I have Ubuntu 18.04 installed in a VirtualBox guest. The VM is configured with two adapters to provide internet access and connectivity to other VMs, which are:

Adapter 1: NAT (enp0s3)

Adapter 2: Internal Network (enp0s8)

When only the NAT adapter is enabled, internet access works fine.

When both adapters are enabled, I am still able to ping to the outside world by IP address, such as, but not by hostname, or web page, indicating a DNS issue.

enp0s3 is set to automatically receive an IP by DHCP and gets the usual IP and is working fine when it is the only adapter enabled.

enp0s8 is set with a static IP (, with the DNS and gateway options left blank. I am struggling to find the issue of why enabling the internal network adapter is causing this problem?

  • Look at these cases: unix.stackexchange.com/questions/37122/… Jul 27 '18 at 18:17
  • 1
    I followed the steps outlined in that link in /etc/network/interfaces by adding the dhcp and static configurations for the interfaces and still have the same problem.
    – jamie754
    Jul 27 '18 at 21:41
  • The linked question does not work for Ubuntu 18.04. Dec 18 '18 at 16:53

/etc/network/interfaces has been replaced by netplan on Ubuntu 18.04 (Why did Ubuntu change the network configuration)

The following works for me:

sudo vim /etc/netplan/60-mynetwork.yaml

            dhcp4: true
    version: 2

sudo netplan apply

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.