Can't connect to the internet in Ubuntu 16.04 (Virtualbox)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
1












I'm a newbie on Ubuntu and I have just installed Ubuntu 16.04 LTS in Virtualbox.



I can't connect to the internet in the virtual machine.



My Network Settings Are:



  • Network 1 = NAT

  • Network 2 = Bridge Network Adapter

I also have enabled the option VirtualBox Host-Only Ethernet Adapter In Host Machine.



I still can't connect to the internet.



Also I get enp0s3 and enp0s8 instead of eht0 and eht1 after running ip link.



Can anybody help me fix this?










share|improve this question























  • enp0s3 and enp0s8 are Predictable Network Interface Names: freedesktop.org/wiki/Software/systemd/…. For troubleshooting, why don't you try disabling everything except for the NAT network?
    – dsstorefile1
    Mar 4 at 15:40















up vote
0
down vote

favorite
1












I'm a newbie on Ubuntu and I have just installed Ubuntu 16.04 LTS in Virtualbox.



I can't connect to the internet in the virtual machine.



My Network Settings Are:



  • Network 1 = NAT

  • Network 2 = Bridge Network Adapter

I also have enabled the option VirtualBox Host-Only Ethernet Adapter In Host Machine.



I still can't connect to the internet.



Also I get enp0s3 and enp0s8 instead of eht0 and eht1 after running ip link.



Can anybody help me fix this?










share|improve this question























  • enp0s3 and enp0s8 are Predictable Network Interface Names: freedesktop.org/wiki/Software/systemd/…. For troubleshooting, why don't you try disabling everything except for the NAT network?
    – dsstorefile1
    Mar 4 at 15:40













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I'm a newbie on Ubuntu and I have just installed Ubuntu 16.04 LTS in Virtualbox.



I can't connect to the internet in the virtual machine.



My Network Settings Are:



  • Network 1 = NAT

  • Network 2 = Bridge Network Adapter

I also have enabled the option VirtualBox Host-Only Ethernet Adapter In Host Machine.



I still can't connect to the internet.



Also I get enp0s3 and enp0s8 instead of eht0 and eht1 after running ip link.



Can anybody help me fix this?










share|improve this question















I'm a newbie on Ubuntu and I have just installed Ubuntu 16.04 LTS in Virtualbox.



I can't connect to the internet in the virtual machine.



My Network Settings Are:



  • Network 1 = NAT

  • Network 2 = Bridge Network Adapter

I also have enabled the option VirtualBox Host-Only Ethernet Adapter In Host Machine.



I still can't connect to the internet.



Also I get enp0s3 and enp0s8 instead of eht0 and eht1 after running ip link.



Can anybody help me fix this?







16.04 networking virtualbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 4 at 15:51









Zanna

48.2k13120228




48.2k13120228










asked Mar 4 at 15:06









Unstopable

1




1











  • enp0s3 and enp0s8 are Predictable Network Interface Names: freedesktop.org/wiki/Software/systemd/…. For troubleshooting, why don't you try disabling everything except for the NAT network?
    – dsstorefile1
    Mar 4 at 15:40

















  • enp0s3 and enp0s8 are Predictable Network Interface Names: freedesktop.org/wiki/Software/systemd/…. For troubleshooting, why don't you try disabling everything except for the NAT network?
    – dsstorefile1
    Mar 4 at 15:40
















enp0s3 and enp0s8 are Predictable Network Interface Names: freedesktop.org/wiki/Software/systemd/…. For troubleshooting, why don't you try disabling everything except for the NAT network?
– dsstorefile1
Mar 4 at 15:40





enp0s3 and enp0s8 are Predictable Network Interface Names: freedesktop.org/wiki/Software/systemd/…. For troubleshooting, why don't you try disabling everything except for the NAT network?
– dsstorefile1
Mar 4 at 15:40











1 Answer
1






active

oldest

votes

















up vote
1
down vote













Is there any reason you have 2 NICs on the VM? If both are configured with default routes I would assume the guest would not know the best route out of it's LAN.



Could I suggest that you remove the bridged NIC and leave the NAT one in place. Confirm that the guest VM has a good ifconfig, with a ping positive default route and good DNS servers (try dig www.bbc.co.uk from terminal and see if it resolves) then try the web again.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011808%2fcant-connect-to-the-internet-in-ubuntu-16-04-virtualbox%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Is there any reason you have 2 NICs on the VM? If both are configured with default routes I would assume the guest would not know the best route out of it's LAN.



    Could I suggest that you remove the bridged NIC and leave the NAT one in place. Confirm that the guest VM has a good ifconfig, with a ping positive default route and good DNS servers (try dig www.bbc.co.uk from terminal and see if it resolves) then try the web again.






    share|improve this answer
























      up vote
      1
      down vote













      Is there any reason you have 2 NICs on the VM? If both are configured with default routes I would assume the guest would not know the best route out of it's LAN.



      Could I suggest that you remove the bridged NIC and leave the NAT one in place. Confirm that the guest VM has a good ifconfig, with a ping positive default route and good DNS servers (try dig www.bbc.co.uk from terminal and see if it resolves) then try the web again.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        Is there any reason you have 2 NICs on the VM? If both are configured with default routes I would assume the guest would not know the best route out of it's LAN.



        Could I suggest that you remove the bridged NIC and leave the NAT one in place. Confirm that the guest VM has a good ifconfig, with a ping positive default route and good DNS servers (try dig www.bbc.co.uk from terminal and see if it resolves) then try the web again.






        share|improve this answer












        Is there any reason you have 2 NICs on the VM? If both are configured with default routes I would assume the guest would not know the best route out of it's LAN.



        Could I suggest that you remove the bridged NIC and leave the NAT one in place. Confirm that the guest VM has a good ifconfig, with a ping positive default route and good DNS servers (try dig www.bbc.co.uk from terminal and see if it resolves) then try the web again.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 4 at 16:29









        James Sumnall

        111




        111



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011808%2fcant-connect-to-the-internet-in-ubuntu-16-04-virtualbox%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491