Oracle Linux 6.1 guest on Virtualbox 4.1 can't connect to network

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











up vote
7
down vote

favorite












I just installed VirtualBox 4.1 on my Windows system, and then added a Solaris 11 Express guest and an Oracle Linux 6.1 guest. Both installs went smoothly. But while the Solaris 11 guest has network access, the Oracle Linux box can't connect to the network.



Both guests are using the same default network settings (NAT). I'm at a loss -- not sure what I need to configure on the OL6.1 side.



To test basic network connectivity, I tried: ping www.google.com. No problems with the Solaris guest. On the OL6.1 guest:



 # ping www.google.com
ping: unknown host www.google.com
# ping 209.85.175.99
connect: Network is unreachable


Is there some sort of network setup that's required on OL6.1 that wasn't required on Solaris11? Thanks in advance.



output from ifconfig -a:



 # ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:8E:A1:42
inet6 addr: fe80::a00:27ff:fe8e:a142/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:328 (328.0 b)

lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0
inet6addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen: 0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)









share|improve this question























  • Please post the output of ifconfig -a. During the installation, did you leave the IPv4 settings on the automatic method (step 10 in the instructions)?
    – Gilles
    Nov 4 '11 at 22:40











  • During installation, I was never given the option to configure the network (step 10 in your instructions). I'm running 6.1; maybe I should go back and try 6.0?
    – Suzanne
    Nov 4 '11 at 22:53














up vote
7
down vote

favorite












I just installed VirtualBox 4.1 on my Windows system, and then added a Solaris 11 Express guest and an Oracle Linux 6.1 guest. Both installs went smoothly. But while the Solaris 11 guest has network access, the Oracle Linux box can't connect to the network.



Both guests are using the same default network settings (NAT). I'm at a loss -- not sure what I need to configure on the OL6.1 side.



To test basic network connectivity, I tried: ping www.google.com. No problems with the Solaris guest. On the OL6.1 guest:



 # ping www.google.com
ping: unknown host www.google.com
# ping 209.85.175.99
connect: Network is unreachable


Is there some sort of network setup that's required on OL6.1 that wasn't required on Solaris11? Thanks in advance.



output from ifconfig -a:



 # ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:8E:A1:42
inet6 addr: fe80::a00:27ff:fe8e:a142/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:328 (328.0 b)

lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0
inet6addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen: 0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)









share|improve this question























  • Please post the output of ifconfig -a. During the installation, did you leave the IPv4 settings on the automatic method (step 10 in the instructions)?
    – Gilles
    Nov 4 '11 at 22:40











  • During installation, I was never given the option to configure the network (step 10 in your instructions). I'm running 6.1; maybe I should go back and try 6.0?
    – Suzanne
    Nov 4 '11 at 22:53












up vote
7
down vote

favorite









up vote
7
down vote

favorite











I just installed VirtualBox 4.1 on my Windows system, and then added a Solaris 11 Express guest and an Oracle Linux 6.1 guest. Both installs went smoothly. But while the Solaris 11 guest has network access, the Oracle Linux box can't connect to the network.



Both guests are using the same default network settings (NAT). I'm at a loss -- not sure what I need to configure on the OL6.1 side.



To test basic network connectivity, I tried: ping www.google.com. No problems with the Solaris guest. On the OL6.1 guest:



 # ping www.google.com
ping: unknown host www.google.com
# ping 209.85.175.99
connect: Network is unreachable


Is there some sort of network setup that's required on OL6.1 that wasn't required on Solaris11? Thanks in advance.



output from ifconfig -a:



 # ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:8E:A1:42
inet6 addr: fe80::a00:27ff:fe8e:a142/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:328 (328.0 b)

lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0
inet6addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen: 0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)









share|improve this question















I just installed VirtualBox 4.1 on my Windows system, and then added a Solaris 11 Express guest and an Oracle Linux 6.1 guest. Both installs went smoothly. But while the Solaris 11 guest has network access, the Oracle Linux box can't connect to the network.



Both guests are using the same default network settings (NAT). I'm at a loss -- not sure what I need to configure on the OL6.1 side.



To test basic network connectivity, I tried: ping www.google.com. No problems with the Solaris guest. On the OL6.1 guest:



 # ping www.google.com
ping: unknown host www.google.com
# ping 209.85.175.99
connect: Network is unreachable


Is there some sort of network setup that's required on OL6.1 that wasn't required on Solaris11? Thanks in advance.



output from ifconfig -a:



 # ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:8E:A1:42
inet6 addr: fe80::a00:27ff:fe8e:a142/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:328 (328.0 b)

lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0
inet6addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen: 0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)






linux networking rhel virtualbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 23 '12 at 2:17









Kevin

26.7k106198




26.7k106198










asked Nov 4 '11 at 22:30









Suzanne

38114




38114











  • Please post the output of ifconfig -a. During the installation, did you leave the IPv4 settings on the automatic method (step 10 in the instructions)?
    – Gilles
    Nov 4 '11 at 22:40











  • During installation, I was never given the option to configure the network (step 10 in your instructions). I'm running 6.1; maybe I should go back and try 6.0?
    – Suzanne
    Nov 4 '11 at 22:53
















  • Please post the output of ifconfig -a. During the installation, did you leave the IPv4 settings on the automatic method (step 10 in the instructions)?
    – Gilles
    Nov 4 '11 at 22:40











  • During installation, I was never given the option to configure the network (step 10 in your instructions). I'm running 6.1; maybe I should go back and try 6.0?
    – Suzanne
    Nov 4 '11 at 22:53















Please post the output of ifconfig -a. During the installation, did you leave the IPv4 settings on the automatic method (step 10 in the instructions)?
– Gilles
Nov 4 '11 at 22:40





Please post the output of ifconfig -a. During the installation, did you leave the IPv4 settings on the automatic method (step 10 in the instructions)?
– Gilles
Nov 4 '11 at 22:40













During installation, I was never given the option to configure the network (step 10 in your instructions). I'm running 6.1; maybe I should go back and try 6.0?
– Suzanne
Nov 4 '11 at 22:53




During installation, I was never given the option to configure the network (step 10 in your instructions). I'm running 6.1; maybe I should go back and try 6.0?
– Suzanne
Nov 4 '11 at 22:53










3 Answers
3






active

oldest

votes

















up vote
5
down vote



accepted










Given that Oracle Linux is heavily based on Red Hat Enterprise Linux, the network configuration is probably the same. If you didn't need to enter any network parameters during the installation of Solaris, then you're picking up a network address through DHCP. There isn't much call for doing anything else in a NATted virtual machine anyway.



To configure a DHCP client on RHEL, edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 to contain the following lines:



DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes


Or you can use Network Manager instead (it'll give you the same kind of network configuration through a desktop icon that Solaris has, and in fact I believe it is more powerful than Solaris's — not that you really need that in a VM).






share|improve this answer



























    up vote
    1
    down vote













    Probably the specified default router might be incorrect. To find out, do



     netstat -r


    to see the routing table. Locate the default route (destination 0.0.0.0), and then ping the default router...i.e.



     ping 10.0.0.1





    share|improve this answer
















    • 1




      on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
      – Suzanne
      Nov 4 '11 at 22:48






    • 1




      Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
      – Gilles
      Nov 4 '11 at 23:16

















    up vote
    0
    down vote













    Centos/RHEL



    Edit the file /etc/sysconfig/network-scripts/interface



    ONBOOT=yes



    and restart network



    it should work !!






    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',
      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%2f23985%2foracle-linux-6-1-guest-on-virtualbox-4-1-cant-connect-to-network%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      5
      down vote



      accepted










      Given that Oracle Linux is heavily based on Red Hat Enterprise Linux, the network configuration is probably the same. If you didn't need to enter any network parameters during the installation of Solaris, then you're picking up a network address through DHCP. There isn't much call for doing anything else in a NATted virtual machine anyway.



      To configure a DHCP client on RHEL, edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 to contain the following lines:



      DEVICE=eth0
      BOOTPROTO=dhcp
      ONBOOT=yes


      Or you can use Network Manager instead (it'll give you the same kind of network configuration through a desktop icon that Solaris has, and in fact I believe it is more powerful than Solaris's — not that you really need that in a VM).






      share|improve this answer
























        up vote
        5
        down vote



        accepted










        Given that Oracle Linux is heavily based on Red Hat Enterprise Linux, the network configuration is probably the same. If you didn't need to enter any network parameters during the installation of Solaris, then you're picking up a network address through DHCP. There isn't much call for doing anything else in a NATted virtual machine anyway.



        To configure a DHCP client on RHEL, edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 to contain the following lines:



        DEVICE=eth0
        BOOTPROTO=dhcp
        ONBOOT=yes


        Or you can use Network Manager instead (it'll give you the same kind of network configuration through a desktop icon that Solaris has, and in fact I believe it is more powerful than Solaris's — not that you really need that in a VM).






        share|improve this answer






















          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          Given that Oracle Linux is heavily based on Red Hat Enterprise Linux, the network configuration is probably the same. If you didn't need to enter any network parameters during the installation of Solaris, then you're picking up a network address through DHCP. There isn't much call for doing anything else in a NATted virtual machine anyway.



          To configure a DHCP client on RHEL, edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 to contain the following lines:



          DEVICE=eth0
          BOOTPROTO=dhcp
          ONBOOT=yes


          Or you can use Network Manager instead (it'll give you the same kind of network configuration through a desktop icon that Solaris has, and in fact I believe it is more powerful than Solaris's — not that you really need that in a VM).






          share|improve this answer












          Given that Oracle Linux is heavily based on Red Hat Enterprise Linux, the network configuration is probably the same. If you didn't need to enter any network parameters during the installation of Solaris, then you're picking up a network address through DHCP. There isn't much call for doing anything else in a NATted virtual machine anyway.



          To configure a DHCP client on RHEL, edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 to contain the following lines:



          DEVICE=eth0
          BOOTPROTO=dhcp
          ONBOOT=yes


          Or you can use Network Manager instead (it'll give you the same kind of network configuration through a desktop icon that Solaris has, and in fact I believe it is more powerful than Solaris's — not that you really need that in a VM).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 4 '11 at 23:14









          Gilles

          522k12610401570




          522k12610401570






















              up vote
              1
              down vote













              Probably the specified default router might be incorrect. To find out, do



               netstat -r


              to see the routing table. Locate the default route (destination 0.0.0.0), and then ping the default router...i.e.



               ping 10.0.0.1





              share|improve this answer
















              • 1




                on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
                – Suzanne
                Nov 4 '11 at 22:48






              • 1




                Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
                – Gilles
                Nov 4 '11 at 23:16














              up vote
              1
              down vote













              Probably the specified default router might be incorrect. To find out, do



               netstat -r


              to see the routing table. Locate the default route (destination 0.0.0.0), and then ping the default router...i.e.



               ping 10.0.0.1





              share|improve this answer
















              • 1




                on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
                – Suzanne
                Nov 4 '11 at 22:48






              • 1




                Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
                – Gilles
                Nov 4 '11 at 23:16












              up vote
              1
              down vote










              up vote
              1
              down vote









              Probably the specified default router might be incorrect. To find out, do



               netstat -r


              to see the routing table. Locate the default route (destination 0.0.0.0), and then ping the default router...i.e.



               ping 10.0.0.1





              share|improve this answer












              Probably the specified default router might be incorrect. To find out, do



               netstat -r


              to see the routing table. Locate the default route (destination 0.0.0.0), and then ping the default router...i.e.



               ping 10.0.0.1






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 4 '11 at 22:39









              mdpc

              4,90521835




              4,90521835







              • 1




                on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
                – Suzanne
                Nov 4 '11 at 22:48






              • 1




                Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
                – Gilles
                Nov 4 '11 at 23:16












              • 1




                on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
                – Suzanne
                Nov 4 '11 at 22:48






              • 1




                Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
                – Gilles
                Nov 4 '11 at 23:16







              1




              1




              on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
              – Suzanne
              Nov 4 '11 at 22:48




              on the OL6.1 guest, netstat -r just displays the header as output; no entries in the routing tables. On the Solaris guest, netstat -r displays info about the default router.
              – Suzanne
              Nov 4 '11 at 22:48




              1




              1




              Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
              – Gilles
              Nov 4 '11 at 23:16




              Unlikely (and that's confirmed by the ifconfig output). On simple setups, it's rare that the routing is wrong; here, as usual, the issue is that there's no IP connectivity at all.
              – Gilles
              Nov 4 '11 at 23:16










              up vote
              0
              down vote













              Centos/RHEL



              Edit the file /etc/sysconfig/network-scripts/interface



              ONBOOT=yes



              and restart network



              it should work !!






              share|improve this answer
























                up vote
                0
                down vote













                Centos/RHEL



                Edit the file /etc/sysconfig/network-scripts/interface



                ONBOOT=yes



                and restart network



                it should work !!






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Centos/RHEL



                  Edit the file /etc/sysconfig/network-scripts/interface



                  ONBOOT=yes



                  and restart network



                  it should work !!






                  share|improve this answer












                  Centos/RHEL



                  Edit the file /etc/sysconfig/network-scripts/interface



                  ONBOOT=yes



                  and restart network



                  it should work !!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 20 at 17:10









                  Nikhil Babu

                  12




                  12



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f23985%2foracle-linux-6-1-guest-on-virtualbox-4-1-cant-connect-to-network%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?