Explicitly setting 'iface inet dhcp' for Ethernet disables the interface Announcing the...

What is the role of the transistor and diode in a soft start circuit?

How to react to hostile behavior from a senior developer?

Resolving to minmaj7

Why do people hide their license plates in the EU?

51k Euros annually for a family of 4 in Berlin: Is it enough?

porting install scripts : can rpm replace apt?

Bete Noir -- no dairy

How does debian/ubuntu knows a package has a updated version

How discoverable are IPv6 addresses and AAAA names by potential attackers?

How widely used is the term Treppenwitz? Is it something that most Germans know?

How to find all the available tools in mac terminal?

How to answer "Have you ever been terminated?"

Naming the result of a source block

Error "illegal generic type for instanceof" when using local classes

Dating a Former Employee

English words in a non-english sci-fi novel

What LEGO pieces have "real-world" functionality?

How to find out what spells would be useless to a blind NPC spellcaster?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

List *all* the tuples!

How do I keep my slimes from escaping their pens?

Output the ŋarâþ crîþ alphabet song without using (m)any letters

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Seeking colloquialism for “just because”



Explicitly setting 'iface inet dhcp' for Ethernet disables the interface



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Network communication slowdown after setting gateway on linuxHow does iptables masquerading allow to access a different local subnet?Wired Network Occasionally Fails (Debian)Disabling NetworkManager on RHEL 7how to network between 2 ubuntu virtual machines (so that i can open a user via SSH from VM1 on VM2)Ethernet connection dropping - DHCP issue?Cannot connect to internet in Kali LinuxSetup Raspberry Pi network interface in /etc/network/interfaces (missing/different entry than expected)KVM Network Bridge, no dns after power outageHow to set up VPN to work in Kali in VirtualBox





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm currently using an Ethernet connection, which has no configuration in /etc/network/interfaces, and is (presumably) using DHCP as specified by the router, in order to be assigned an IP address.



However, when I set the following in /etc/network/interfaces:



source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The wired / ethernet interface
iface enh0j7 inet dhcp


and reboot, the Ethernet interface is no longer assigned an IP address and is no longer manageable in the NetworkManager:



ip addr


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enh0j7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 70:be:72:97:88:66 brd ff:ff:ff:ff:ff:ff


enter image description here



I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router). So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP?



However, if I add the following to /etc/network/interfaces:



auto enh0j7



The interface is once again provided an IP address (albeit still not manageable in the NetworkManager, but I understand why).



What impact does the auto setting have on the interface that the iface inet dhcp does not?










share|improve this question































    1















    I'm currently using an Ethernet connection, which has no configuration in /etc/network/interfaces, and is (presumably) using DHCP as specified by the router, in order to be assigned an IP address.



    However, when I set the following in /etc/network/interfaces:



    source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The wired / ethernet interface
    iface enh0j7 inet dhcp


    and reboot, the Ethernet interface is no longer assigned an IP address and is no longer manageable in the NetworkManager:



    ip addr


    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: enh0j7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 70:be:72:97:88:66 brd ff:ff:ff:ff:ff:ff


    enter image description here



    I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router). So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP?



    However, if I add the following to /etc/network/interfaces:



    auto enh0j7



    The interface is once again provided an IP address (albeit still not manageable in the NetworkManager, but I understand why).



    What impact does the auto setting have on the interface that the iface inet dhcp does not?










    share|improve this question



























      1












      1








      1








      I'm currently using an Ethernet connection, which has no configuration in /etc/network/interfaces, and is (presumably) using DHCP as specified by the router, in order to be assigned an IP address.



      However, when I set the following in /etc/network/interfaces:



      source /etc/network/interfaces.d/*

      # The loopback network interface
      auto lo
      iface lo inet loopback

      # The wired / ethernet interface
      iface enh0j7 inet dhcp


      and reboot, the Ethernet interface is no longer assigned an IP address and is no longer manageable in the NetworkManager:



      ip addr


      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      2: enh0j7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 70:be:72:97:88:66 brd ff:ff:ff:ff:ff:ff


      enter image description here



      I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router). So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP?



      However, if I add the following to /etc/network/interfaces:



      auto enh0j7



      The interface is once again provided an IP address (albeit still not manageable in the NetworkManager, but I understand why).



      What impact does the auto setting have on the interface that the iface inet dhcp does not?










      share|improve this question
















      I'm currently using an Ethernet connection, which has no configuration in /etc/network/interfaces, and is (presumably) using DHCP as specified by the router, in order to be assigned an IP address.



      However, when I set the following in /etc/network/interfaces:



      source /etc/network/interfaces.d/*

      # The loopback network interface
      auto lo
      iface lo inet loopback

      # The wired / ethernet interface
      iface enh0j7 inet dhcp


      and reboot, the Ethernet interface is no longer assigned an IP address and is no longer manageable in the NetworkManager:



      ip addr


      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      2: enh0j7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 70:be:72:97:88:66 brd ff:ff:ff:ff:ff:ff


      enter image description here



      I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router). So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP?



      However, if I add the following to /etc/network/interfaces:



      auto enh0j7



      The interface is once again provided an IP address (albeit still not manageable in the NetworkManager, but I understand why).



      What impact does the auto setting have on the interface that the iface inet dhcp does not?







      networking router ethernet dhcp network-interface






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 16 hours ago









      CaldeiraG

      1,283521




      1,283521










      asked 18 hours ago









      jimjamzjimjamz

      84




      84






















          1 Answer
          1






          active

          oldest

          votes


















          0















          I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router).




          You have. Your previous configuration was to use NetworkManager for DHCP; your new configuration is to use ifupdown (/etc/network/interfaces) for DHCP.



          Although NetworkManager remains running, it deliberately avoids configuring this interface, because you told the system to manage it via ifupdown instead. This is deliberate to avoid conflicts, as two programs configuring the same network interface can give strange results (duplicate addresses, etc).



          (Note that previous Debian NM packages used to have the opposite behavior: NM would read configuration from ifupdown's 'interfaces' file and apply it on its own, without calling ifupdown at all. As written on the Debian Wiki page, this changed in Debian 6, and NM is now strictly separated from ifupdown.)




          So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP? [...] What impact does the auto setting have on the interface that the iface inet dhcp does not?




          Settings from /etc/network/interfaces are only applied when ifup is run. So the "impact" you are seeing is literally the purpose of "auto": it tells the system to run ifup <interface> on boot. Without that option, ifupdown does not configure the interface automatically and is left for manual usage.



          When you had neither "auto" nor "iface", ifup also did nothing – instead you had NetworkManager acting as your DHCP client.






          share|improve this answer


























          • Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

            – jimjamz
            5 hours ago












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f1426001%2fexplicitly-setting-iface-inet-dhcp-for-ethernet-disables-the-interface%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















          I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router).




          You have. Your previous configuration was to use NetworkManager for DHCP; your new configuration is to use ifupdown (/etc/network/interfaces) for DHCP.



          Although NetworkManager remains running, it deliberately avoids configuring this interface, because you told the system to manage it via ifupdown instead. This is deliberate to avoid conflicts, as two programs configuring the same network interface can give strange results (duplicate addresses, etc).



          (Note that previous Debian NM packages used to have the opposite behavior: NM would read configuration from ifupdown's 'interfaces' file and apply it on its own, without calling ifupdown at all. As written on the Debian Wiki page, this changed in Debian 6, and NM is now strictly separated from ifupdown.)




          So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP? [...] What impact does the auto setting have on the interface that the iface inet dhcp does not?




          Settings from /etc/network/interfaces are only applied when ifup is run. So the "impact" you are seeing is literally the purpose of "auto": it tells the system to run ifup <interface> on boot. Without that option, ifupdown does not configure the interface automatically and is left for manual usage.



          When you had neither "auto" nor "iface", ifup also did nothing – instead you had NetworkManager acting as your DHCP client.






          share|improve this answer


























          • Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

            – jimjamz
            5 hours ago
















          0















          I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router).




          You have. Your previous configuration was to use NetworkManager for DHCP; your new configuration is to use ifupdown (/etc/network/interfaces) for DHCP.



          Although NetworkManager remains running, it deliberately avoids configuring this interface, because you told the system to manage it via ifupdown instead. This is deliberate to avoid conflicts, as two programs configuring the same network interface can give strange results (duplicate addresses, etc).



          (Note that previous Debian NM packages used to have the opposite behavior: NM would read configuration from ifupdown's 'interfaces' file and apply it on its own, without calling ifupdown at all. As written on the Debian Wiki page, this changed in Debian 6, and NM is now strictly separated from ifupdown.)




          So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP? [...] What impact does the auto setting have on the interface that the iface inet dhcp does not?




          Settings from /etc/network/interfaces are only applied when ifup is run. So the "impact" you are seeing is literally the purpose of "auto": it tells the system to run ifup <interface> on boot. Without that option, ifupdown does not configure the interface automatically and is left for manual usage.



          When you had neither "auto" nor "iface", ifup also did nothing – instead you had NetworkManager acting as your DHCP client.






          share|improve this answer


























          • Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

            – jimjamz
            5 hours ago














          0












          0








          0








          I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router).




          You have. Your previous configuration was to use NetworkManager for DHCP; your new configuration is to use ifupdown (/etc/network/interfaces) for DHCP.



          Although NetworkManager remains running, it deliberately avoids configuring this interface, because you told the system to manage it via ifupdown instead. This is deliberate to avoid conflicts, as two programs configuring the same network interface can give strange results (duplicate addresses, etc).



          (Note that previous Debian NM packages used to have the opposite behavior: NM would read configuration from ifupdown's 'interfaces' file and apply it on its own, without calling ifupdown at all. As written on the Debian Wiki page, this changed in Debian 6, and NM is now strictly separated from ifupdown.)




          So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP? [...] What impact does the auto setting have on the interface that the iface inet dhcp does not?




          Settings from /etc/network/interfaces are only applied when ifup is run. So the "impact" you are seeing is literally the purpose of "auto": it tells the system to run ifup <interface> on boot. Without that option, ifupdown does not configure the interface automatically and is left for manual usage.



          When you had neither "auto" nor "iface", ifup also did nothing – instead you had NetworkManager acting as your DHCP client.






          share|improve this answer
















          I haven't changed anything that the Ethernet interface isn't already configured for (e.g. DHCP via the router).




          You have. Your previous configuration was to use NetworkManager for DHCP; your new configuration is to use ifupdown (/etc/network/interfaces) for DHCP.



          Although NetworkManager remains running, it deliberately avoids configuring this interface, because you told the system to manage it via ifupdown instead. This is deliberate to avoid conflicts, as two programs configuring the same network interface can give strange results (duplicate addresses, etc).



          (Note that previous Debian NM packages used to have the opposite behavior: NM would read configuration from ifupdown's 'interfaces' file and apply it on its own, without calling ifupdown at all. As written on the Debian Wiki page, this changed in Debian 6, and NM is now strictly separated from ifupdown.)




          So, why does the Ethernet interface fail to be provided an IP address when specifying to be configured by DHCP? [...] What impact does the auto setting have on the interface that the iface inet dhcp does not?




          Settings from /etc/network/interfaces are only applied when ifup is run. So the "impact" you are seeing is literally the purpose of "auto": it tells the system to run ifup <interface> on boot. Without that option, ifupdown does not configure the interface automatically and is left for manual usage.



          When you had neither "auto" nor "iface", ifup also did nothing – instead you had NetworkManager acting as your DHCP client.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 16 hours ago

























          answered 16 hours ago









          grawitygrawity

          244k37515576




          244k37515576













          • Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

            – jimjamz
            5 hours ago



















          • Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

            – jimjamz
            5 hours ago

















          Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

          – jimjamz
          5 hours ago





          Thank you very much. Your explanation was clear and concise. I was not aware of the history of how NM applied configuration changes before Debian 7 (I started with Wheezy) and was not aware the two work independently. More informative than many other resources I found on this subject.

          – jimjamz
          5 hours ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1426001%2fexplicitly-setting-iface-inet-dhcp-for-ethernet-disables-the-interface%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

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

          looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...