No networking for Centos under VirtualBox

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












4















Running an Ubuntu desktop server. I installed virtual box, then installed CentOS as a virtual machine. Centos is not starting the eth0 network adaptor. When I start it manually, I cannot connect outside the machine.



Anyone know what I've done wrong?



Virtual Box 4.1.12 and CentOS 6.2 and Ubuntu 11.10 64 bit. Using NAT addressing.



Networking for the Main Server:



eth0 Link encap:Ethernet HWaddr c8:60:00:12:a7:9a 
inet addr:10.0.0.99 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fe12:a79a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15492 errors:0 dropped:0 overruns:0 frame:0
TX packets:7192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3083151 (3.0 MB) TX bytes:1104784 (1.1 MB)
Interrupt:41 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)


Networking for the CentOS virtual Server:



eth0 Link encap:Ethernet HWaddr 08:00:27:75:b2:9ac2
inet addr:10.0.0.98 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe75:b2c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1350 (1.3 KiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)









share|improve this question



















  • 1





    Post ifconfig -a from guest and tell us what type of networking you have enabled in VM settings...

    – pbm
    Apr 10 '12 at 19:22















4















Running an Ubuntu desktop server. I installed virtual box, then installed CentOS as a virtual machine. Centos is not starting the eth0 network adaptor. When I start it manually, I cannot connect outside the machine.



Anyone know what I've done wrong?



Virtual Box 4.1.12 and CentOS 6.2 and Ubuntu 11.10 64 bit. Using NAT addressing.



Networking for the Main Server:



eth0 Link encap:Ethernet HWaddr c8:60:00:12:a7:9a 
inet addr:10.0.0.99 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fe12:a79a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15492 errors:0 dropped:0 overruns:0 frame:0
TX packets:7192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3083151 (3.0 MB) TX bytes:1104784 (1.1 MB)
Interrupt:41 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)


Networking for the CentOS virtual Server:



eth0 Link encap:Ethernet HWaddr 08:00:27:75:b2:9ac2
inet addr:10.0.0.98 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe75:b2c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1350 (1.3 KiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)









share|improve this question



















  • 1





    Post ifconfig -a from guest and tell us what type of networking you have enabled in VM settings...

    – pbm
    Apr 10 '12 at 19:22













4












4








4








Running an Ubuntu desktop server. I installed virtual box, then installed CentOS as a virtual machine. Centos is not starting the eth0 network adaptor. When I start it manually, I cannot connect outside the machine.



Anyone know what I've done wrong?



Virtual Box 4.1.12 and CentOS 6.2 and Ubuntu 11.10 64 bit. Using NAT addressing.



Networking for the Main Server:



eth0 Link encap:Ethernet HWaddr c8:60:00:12:a7:9a 
inet addr:10.0.0.99 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fe12:a79a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15492 errors:0 dropped:0 overruns:0 frame:0
TX packets:7192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3083151 (3.0 MB) TX bytes:1104784 (1.1 MB)
Interrupt:41 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)


Networking for the CentOS virtual Server:



eth0 Link encap:Ethernet HWaddr 08:00:27:75:b2:9ac2
inet addr:10.0.0.98 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe75:b2c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1350 (1.3 KiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)









share|improve this question
















Running an Ubuntu desktop server. I installed virtual box, then installed CentOS as a virtual machine. Centos is not starting the eth0 network adaptor. When I start it manually, I cannot connect outside the machine.



Anyone know what I've done wrong?



Virtual Box 4.1.12 and CentOS 6.2 and Ubuntu 11.10 64 bit. Using NAT addressing.



Networking for the Main Server:



eth0 Link encap:Ethernet HWaddr c8:60:00:12:a7:9a 
inet addr:10.0.0.99 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fe12:a79a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15492 errors:0 dropped:0 overruns:0 frame:0
TX packets:7192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3083151 (3.0 MB) TX bytes:1104784 (1.1 MB)
Interrupt:41 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)


Networking for the CentOS virtual Server:



eth0 Link encap:Ethernet HWaddr 08:00:27:75:b2:9ac2
inet addr:10.0.0.98 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe75:b2c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1350 (1.3 KiB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:789448 (789.4 KB) TX bytes:789448 (789.4 KB)






centos virtualbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 at 21:29









Rui F Ribeiro

39.6k1479132




39.6k1479132










asked Apr 10 '12 at 19:07









ThomThom

2,30741115




2,30741115







  • 1





    Post ifconfig -a from guest and tell us what type of networking you have enabled in VM settings...

    – pbm
    Apr 10 '12 at 19:22












  • 1





    Post ifconfig -a from guest and tell us what type of networking you have enabled in VM settings...

    – pbm
    Apr 10 '12 at 19:22







1




1





Post ifconfig -a from guest and tell us what type of networking you have enabled in VM settings...

– pbm
Apr 10 '12 at 19:22





Post ifconfig -a from guest and tell us what type of networking you have enabled in VM settings...

– pbm
Apr 10 '12 at 19:22










1 Answer
1






active

oldest

votes


















4














The issue with this appears to have been the NAT setting. It requires you to use 10.0.2.* addresses.




To change the default network go to VirtualBox Manager's preferences and click on the Network tab. Click on the edit icon and modify the Network CIDR to the network you need for your guests. If you need to enable/disable either DHCP and/or IPv6 as well, go ahead and toggle the check boxes to your needs.




Also, when I thought about, NAT doesn't provide me with external access to that IP address. I changed it to bridged and everything now appears to be working.



Thanks for the help.






share|improve this answer
























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f36165%2fno-networking-for-centos-under-virtualbox%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    The issue with this appears to have been the NAT setting. It requires you to use 10.0.2.* addresses.




    To change the default network go to VirtualBox Manager's preferences and click on the Network tab. Click on the edit icon and modify the Network CIDR to the network you need for your guests. If you need to enable/disable either DHCP and/or IPv6 as well, go ahead and toggle the check boxes to your needs.




    Also, when I thought about, NAT doesn't provide me with external access to that IP address. I changed it to bridged and everything now appears to be working.



    Thanks for the help.






    share|improve this answer





























      4














      The issue with this appears to have been the NAT setting. It requires you to use 10.0.2.* addresses.




      To change the default network go to VirtualBox Manager's preferences and click on the Network tab. Click on the edit icon and modify the Network CIDR to the network you need for your guests. If you need to enable/disable either DHCP and/or IPv6 as well, go ahead and toggle the check boxes to your needs.




      Also, when I thought about, NAT doesn't provide me with external access to that IP address. I changed it to bridged and everything now appears to be working.



      Thanks for the help.






      share|improve this answer



























        4












        4








        4







        The issue with this appears to have been the NAT setting. It requires you to use 10.0.2.* addresses.




        To change the default network go to VirtualBox Manager's preferences and click on the Network tab. Click on the edit icon and modify the Network CIDR to the network you need for your guests. If you need to enable/disable either DHCP and/or IPv6 as well, go ahead and toggle the check boxes to your needs.




        Also, when I thought about, NAT doesn't provide me with external access to that IP address. I changed it to bridged and everything now appears to be working.



        Thanks for the help.






        share|improve this answer















        The issue with this appears to have been the NAT setting. It requires you to use 10.0.2.* addresses.




        To change the default network go to VirtualBox Manager's preferences and click on the Network tab. Click on the edit icon and modify the Network CIDR to the network you need for your guests. If you need to enable/disable either DHCP and/or IPv6 as well, go ahead and toggle the check boxes to your needs.




        Also, when I thought about, NAT doesn't provide me with external access to that IP address. I changed it to bridged and everything now appears to be working.



        Thanks for the help.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 8 '15 at 18:21









        dohpaz42

        1033




        1033










        answered Apr 11 '12 at 13:12









        ThomThom

        2,30741115




        2,30741115



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f36165%2fno-networking-for-centos-under-virtualbox%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?