Set a static IP to lubuntu on VirtualBox












4















I am using lubuntu 13.04 on a VirtualBox with a briged adapter.
I want to make the IP of my VM static, I looked up on how to do this and many results came up.



I went on and edited the interfaces file so now it looks like this:



#interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

#Added by me
auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
gateway 192.168.1.1


When I restart the VM the IP is changed to 192.168.1.99, but I have no network connectivity.



What am I missing?










share|improve this question





























    4















    I am using lubuntu 13.04 on a VirtualBox with a briged adapter.
    I want to make the IP of my VM static, I looked up on how to do this and many results came up.



    I went on and edited the interfaces file so now it looks like this:



    #interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback

    #Added by me
    auto eth0
    iface eth0 inet static
    address 192.168.1.99
    netmask 255.255.255.0
    gateway 192.168.1.1


    When I restart the VM the IP is changed to 192.168.1.99, but I have no network connectivity.



    What am I missing?










    share|improve this question



























      4












      4








      4








      I am using lubuntu 13.04 on a VirtualBox with a briged adapter.
      I want to make the IP of my VM static, I looked up on how to do this and many results came up.



      I went on and edited the interfaces file so now it looks like this:



      #interfaces(5) file used by ifup(8) and ifdown(8)
      auto lo
      iface lo inet loopback

      #Added by me
      auto eth0
      iface eth0 inet static
      address 192.168.1.99
      netmask 255.255.255.0
      gateway 192.168.1.1


      When I restart the VM the IP is changed to 192.168.1.99, but I have no network connectivity.



      What am I missing?










      share|improve this question
















      I am using lubuntu 13.04 on a VirtualBox with a briged adapter.
      I want to make the IP of my VM static, I looked up on how to do this and many results came up.



      I went on and edited the interfaces file so now it looks like this:



      #interfaces(5) file used by ifup(8) and ifdown(8)
      auto lo
      iface lo inet loopback

      #Added by me
      auto eth0
      iface eth0 inet static
      address 192.168.1.99
      netmask 255.255.255.0
      gateway 192.168.1.1


      When I restart the VM the IP is changed to 192.168.1.99, but I have no network connectivity.



      What am I missing?







      networking virtualbox lubuntu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 30 '13 at 16:05







      Bennyz

















      asked Sep 26 '13 at 15:22









      BennyzBennyz

      12114




      12114






















          1 Answer
          1






          active

          oldest

          votes


















          0














          First thing I notice is



              auto eht0


          should be



              auto eth0


          That would cause a device issue and not be able to bring the adapter up. Fix that first then there might be further things to troubleshoot, or that could be it.






          share|improve this answer
























          • Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

            – Bennyz
            Sep 30 '13 at 16:05













          • Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

            – rhoover
            Oct 7 '13 at 15:31











          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f350390%2fset-a-static-ip-to-lubuntu-on-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









          0














          First thing I notice is



              auto eht0


          should be



              auto eth0


          That would cause a device issue and not be able to bring the adapter up. Fix that first then there might be further things to troubleshoot, or that could be it.






          share|improve this answer
























          • Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

            – Bennyz
            Sep 30 '13 at 16:05













          • Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

            – rhoover
            Oct 7 '13 at 15:31
















          0














          First thing I notice is



              auto eht0


          should be



              auto eth0


          That would cause a device issue and not be able to bring the adapter up. Fix that first then there might be further things to troubleshoot, or that could be it.






          share|improve this answer
























          • Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

            – Bennyz
            Sep 30 '13 at 16:05













          • Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

            – rhoover
            Oct 7 '13 at 15:31














          0












          0








          0







          First thing I notice is



              auto eht0


          should be



              auto eth0


          That would cause a device issue and not be able to bring the adapter up. Fix that first then there might be further things to troubleshoot, or that could be it.






          share|improve this answer













          First thing I notice is



              auto eht0


          should be



              auto eth0


          That would cause a device issue and not be able to bring the adapter up. Fix that first then there might be further things to troubleshoot, or that could be it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 30 '13 at 15:53









          rhooverrhoover

          662




          662













          • Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

            – Bennyz
            Sep 30 '13 at 16:05













          • Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

            – rhoover
            Oct 7 '13 at 15:31



















          • Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

            – Bennyz
            Sep 30 '13 at 16:05













          • Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

            – rhoover
            Oct 7 '13 at 15:31

















          Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

          – Bennyz
          Sep 30 '13 at 16:05







          Actually it was a typo, I just copied it wrong. It's auto eth0. Thanks for noticing, I'll edit it.

          – Bennyz
          Sep 30 '13 at 16:05















          Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

          – rhoover
          Oct 7 '13 at 15:31





          Then next step, is your router IP 192.168.1.1 are there any other systems with 192.168.1.99? If you're going to have static addresses and DHCP on the same network I recommend looking outside of your lease range to set the static IP

          – rhoover
          Oct 7 '13 at 15:31


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f350390%2fset-a-static-ip-to-lubuntu-on-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

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]