How do I use /etc/network/interfaces instead of network-manager





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







19















I have 12.04 Desktop installed, how do I uninstall Network-Manager and set /etc/network/interfaces as the default file to resolve my network connections?










share|improve this question































    19















    I have 12.04 Desktop installed, how do I uninstall Network-Manager and set /etc/network/interfaces as the default file to resolve my network connections?










    share|improve this question



























      19












      19








      19


      3






      I have 12.04 Desktop installed, how do I uninstall Network-Manager and set /etc/network/interfaces as the default file to resolve my network connections?










      share|improve this question
















      I have 12.04 Desktop installed, how do I uninstall Network-Manager and set /etc/network/interfaces as the default file to resolve my network connections?







      networking network-manager






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 10 '17 at 2:28









      muru

      1




      1










      asked Mar 9 '14 at 11:35









      user240010user240010

      1553314




      1553314






















          2 Answers
          2






          active

          oldest

          votes


















          26














          If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"



          Suppose your network card is eth0 :



          To setup eth0 to static, enter:



          open /etc/network/interfaces :

          auto eth0
          iface eth0 inet static
          address 192.168.1.15 #------> Your Ip Address
          netmask 255.255.255.0 #------> Netmask
          gateway 192.168.1.254 #-------> Gateway
          broadcast 192.168.0.255
          dns-nameservers 192.168.1.3 #-----> Dns server


          To setup eth0 to dhcp, enter:



          auto eth0
          iface eth0 inet dhcp


          The different keywords have the following meaning:



          auto: the interface should be configured during boot time.



          iface : interface



          inet: interface uses TCP/IP networking.



          Now restart service :



          sudo service network-manager restart





          share|improve this answer





















          • 5





            Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

            – Anders
            Mar 11 '14 at 21:06





















          2














          In the file /etc/NetworkManager/NetworkManager.conf:



          [main]
          plugins=ifupdown,keyfile
          dns=dnsmasq

          no-auto-default=00:0C:29:90:24:0F,00:0C:29:2E:C8:2C,

          [ifupdown]
          managed=false


          where false means that network-manager doesn't manage the interfaces located in the file /etc/network/interfaces.






          share|improve this answer





















          • 1





            And that's the default, as was answered three years ago.

            – muru
            Aug 10 '17 at 2:29












          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%2f431682%2fhow-do-i-use-etc-network-interfaces-instead-of-network-manager%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          26














          If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"



          Suppose your network card is eth0 :



          To setup eth0 to static, enter:



          open /etc/network/interfaces :

          auto eth0
          iface eth0 inet static
          address 192.168.1.15 #------> Your Ip Address
          netmask 255.255.255.0 #------> Netmask
          gateway 192.168.1.254 #-------> Gateway
          broadcast 192.168.0.255
          dns-nameservers 192.168.1.3 #-----> Dns server


          To setup eth0 to dhcp, enter:



          auto eth0
          iface eth0 inet dhcp


          The different keywords have the following meaning:



          auto: the interface should be configured during boot time.



          iface : interface



          inet: interface uses TCP/IP networking.



          Now restart service :



          sudo service network-manager restart





          share|improve this answer





















          • 5





            Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

            – Anders
            Mar 11 '14 at 21:06


















          26














          If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"



          Suppose your network card is eth0 :



          To setup eth0 to static, enter:



          open /etc/network/interfaces :

          auto eth0
          iface eth0 inet static
          address 192.168.1.15 #------> Your Ip Address
          netmask 255.255.255.0 #------> Netmask
          gateway 192.168.1.254 #-------> Gateway
          broadcast 192.168.0.255
          dns-nameservers 192.168.1.3 #-----> Dns server


          To setup eth0 to dhcp, enter:



          auto eth0
          iface eth0 inet dhcp


          The different keywords have the following meaning:



          auto: the interface should be configured during boot time.



          iface : interface



          inet: interface uses TCP/IP networking.



          Now restart service :



          sudo service network-manager restart





          share|improve this answer





















          • 5





            Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

            – Anders
            Mar 11 '14 at 21:06
















          26












          26








          26







          If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"



          Suppose your network card is eth0 :



          To setup eth0 to static, enter:



          open /etc/network/interfaces :

          auto eth0
          iface eth0 inet static
          address 192.168.1.15 #------> Your Ip Address
          netmask 255.255.255.0 #------> Netmask
          gateway 192.168.1.254 #-------> Gateway
          broadcast 192.168.0.255
          dns-nameservers 192.168.1.3 #-----> Dns server


          To setup eth0 to dhcp, enter:



          auto eth0
          iface eth0 inet dhcp


          The different keywords have the following meaning:



          auto: the interface should be configured during boot time.



          iface : interface



          inet: interface uses TCP/IP networking.



          Now restart service :



          sudo service network-manager restart





          share|improve this answer















          If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"



          Suppose your network card is eth0 :



          To setup eth0 to static, enter:



          open /etc/network/interfaces :

          auto eth0
          iface eth0 inet static
          address 192.168.1.15 #------> Your Ip Address
          netmask 255.255.255.0 #------> Netmask
          gateway 192.168.1.254 #-------> Gateway
          broadcast 192.168.0.255
          dns-nameservers 192.168.1.3 #-----> Dns server


          To setup eth0 to dhcp, enter:



          auto eth0
          iface eth0 inet dhcp


          The different keywords have the following meaning:



          auto: the interface should be configured during boot time.



          iface : interface



          inet: interface uses TCP/IP networking.



          Now restart service :



          sudo service network-manager restart






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 12 at 9:07









          N0rbert

          25.2k853118




          25.2k853118










          answered Mar 9 '14 at 12:07









          nuxnux

          23.2k3096117




          23.2k3096117








          • 5





            Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

            – Anders
            Mar 11 '14 at 21:06
















          • 5





            Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

            – Anders
            Mar 11 '14 at 21:06










          5




          5





          Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

          – Anders
          Mar 11 '14 at 21:06







          Dont set network and broadcast in /e/n/interfaces if you dont need it. Of you get it right it usually doesn't matter and if you get it wrong, like you have done and it is easy to get it wrong, you could lose some network confections. The computer is better than us to calculate this. You should also check that the package resolvconf is installed, or the dns-directives will not work.

          – Anders
          Mar 11 '14 at 21:06















          2














          In the file /etc/NetworkManager/NetworkManager.conf:



          [main]
          plugins=ifupdown,keyfile
          dns=dnsmasq

          no-auto-default=00:0C:29:90:24:0F,00:0C:29:2E:C8:2C,

          [ifupdown]
          managed=false


          where false means that network-manager doesn't manage the interfaces located in the file /etc/network/interfaces.






          share|improve this answer





















          • 1





            And that's the default, as was answered three years ago.

            – muru
            Aug 10 '17 at 2:29
















          2














          In the file /etc/NetworkManager/NetworkManager.conf:



          [main]
          plugins=ifupdown,keyfile
          dns=dnsmasq

          no-auto-default=00:0C:29:90:24:0F,00:0C:29:2E:C8:2C,

          [ifupdown]
          managed=false


          where false means that network-manager doesn't manage the interfaces located in the file /etc/network/interfaces.






          share|improve this answer





















          • 1





            And that's the default, as was answered three years ago.

            – muru
            Aug 10 '17 at 2:29














          2












          2








          2







          In the file /etc/NetworkManager/NetworkManager.conf:



          [main]
          plugins=ifupdown,keyfile
          dns=dnsmasq

          no-auto-default=00:0C:29:90:24:0F,00:0C:29:2E:C8:2C,

          [ifupdown]
          managed=false


          where false means that network-manager doesn't manage the interfaces located in the file /etc/network/interfaces.






          share|improve this answer















          In the file /etc/NetworkManager/NetworkManager.conf:



          [main]
          plugins=ifupdown,keyfile
          dns=dnsmasq

          no-auto-default=00:0C:29:90:24:0F,00:0C:29:2E:C8:2C,

          [ifupdown]
          managed=false


          where false means that network-manager doesn't manage the interfaces located in the file /etc/network/interfaces.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 10 '17 at 2:29









          muru

          1




          1










          answered Aug 10 '17 at 2:23









          y. Liuy. Liu

          563




          563








          • 1





            And that's the default, as was answered three years ago.

            – muru
            Aug 10 '17 at 2:29














          • 1





            And that's the default, as was answered three years ago.

            – muru
            Aug 10 '17 at 2:29








          1




          1





          And that's the default, as was answered three years ago.

          – muru
          Aug 10 '17 at 2:29





          And that's the default, as was answered three years ago.

          – muru
          Aug 10 '17 at 2:29


















          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%2f431682%2fhow-do-i-use-etc-network-interfaces-instead-of-network-manager%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 change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?