Unable to restart networking on Debian with Systemd











up vote
0
down vote

favorite












First of all important:




  • Debian does not install NetworkManager by default if you run install it on text mode. (I received some answers considering that I did not get how to configure Network Manager)


Well, I am trying to figure out why I just can't restart the networking configuration without a system restart, or doing some commands by hand.



service networking restart 


Does not have any effect as everybody knows.



ifdown ensp0


Says that the interface is not running....



What I'm doing is using the ip command, to remove all the ips one by one, then bringing them all up with ifup. However that is very strange.



So in a way what is the correct form to just restart all the network connections as we do in the ancient versions?



Should I use network-manager in text mode with nmtui? If so, Why is Debian still installing /etc/network/interfaces by default and not nmtui? And why is network/interfaces working when the system is restarted?



If I add:



auto enps0 


Then networking starts to work better. So I start asking, why this is not the default behavior after the installation? How are the interface is brought up by default, if it is not configured to auto start?



Is this more of systemd issue? Or, it is related to the net-tools being deprecated?



And much much more... But the only thing that I really want to know is, how can i just do a simple restart of the network interfaces, after the installation?










share|improve this question




























    up vote
    0
    down vote

    favorite












    First of all important:




    • Debian does not install NetworkManager by default if you run install it on text mode. (I received some answers considering that I did not get how to configure Network Manager)


    Well, I am trying to figure out why I just can't restart the networking configuration without a system restart, or doing some commands by hand.



    service networking restart 


    Does not have any effect as everybody knows.



    ifdown ensp0


    Says that the interface is not running....



    What I'm doing is using the ip command, to remove all the ips one by one, then bringing them all up with ifup. However that is very strange.



    So in a way what is the correct form to just restart all the network connections as we do in the ancient versions?



    Should I use network-manager in text mode with nmtui? If so, Why is Debian still installing /etc/network/interfaces by default and not nmtui? And why is network/interfaces working when the system is restarted?



    If I add:



    auto enps0 


    Then networking starts to work better. So I start asking, why this is not the default behavior after the installation? How are the interface is brought up by default, if it is not configured to auto start?



    Is this more of systemd issue? Or, it is related to the net-tools being deprecated?



    And much much more... But the only thing that I really want to know is, how can i just do a simple restart of the network interfaces, after the installation?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      First of all important:




      • Debian does not install NetworkManager by default if you run install it on text mode. (I received some answers considering that I did not get how to configure Network Manager)


      Well, I am trying to figure out why I just can't restart the networking configuration without a system restart, or doing some commands by hand.



      service networking restart 


      Does not have any effect as everybody knows.



      ifdown ensp0


      Says that the interface is not running....



      What I'm doing is using the ip command, to remove all the ips one by one, then bringing them all up with ifup. However that is very strange.



      So in a way what is the correct form to just restart all the network connections as we do in the ancient versions?



      Should I use network-manager in text mode with nmtui? If so, Why is Debian still installing /etc/network/interfaces by default and not nmtui? And why is network/interfaces working when the system is restarted?



      If I add:



      auto enps0 


      Then networking starts to work better. So I start asking, why this is not the default behavior after the installation? How are the interface is brought up by default, if it is not configured to auto start?



      Is this more of systemd issue? Or, it is related to the net-tools being deprecated?



      And much much more... But the only thing that I really want to know is, how can i just do a simple restart of the network interfaces, after the installation?










      share|improve this question















      First of all important:




      • Debian does not install NetworkManager by default if you run install it on text mode. (I received some answers considering that I did not get how to configure Network Manager)


      Well, I am trying to figure out why I just can't restart the networking configuration without a system restart, or doing some commands by hand.



      service networking restart 


      Does not have any effect as everybody knows.



      ifdown ensp0


      Says that the interface is not running....



      What I'm doing is using the ip command, to remove all the ips one by one, then bringing them all up with ifup. However that is very strange.



      So in a way what is the correct form to just restart all the network connections as we do in the ancient versions?



      Should I use network-manager in text mode with nmtui? If so, Why is Debian still installing /etc/network/interfaces by default and not nmtui? And why is network/interfaces working when the system is restarted?



      If I add:



      auto enps0 


      Then networking starts to work better. So I start asking, why this is not the default behavior after the installation? How are the interface is brought up by default, if it is not configured to auto start?



      Is this more of systemd issue? Or, it is related to the net-tools being deprecated?



      And much much more... But the only thing that I really want to know is, how can i just do a simple restart of the network interfaces, after the installation?







      debian networking






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 at 21:29









      Michael Prokopec

      59915




      59915










      asked Nov 22 at 11:50









      Luciano Andress Martini

      3,345930




      3,345930






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          NetworkManager's configuration storage is more versatile than you think.



          NetworkManager has multiple different plug-ins for configuration storage. RedHat and related distributions use nm-settings-ifcfg-rh which uses (and extends) classic RedHat-style /etc/sysconfig/network-scripts/ifcfg-* and .../route-* files.



          Debian and related distributions, on the other hand, use nm-settings-plugin-ifupdown instead: that reads Debian's traditional /etc/network/interfaces file. Unlike RedHat's solution, this is a purely read-only plug-in.



          SuSE also has a NetworkManager plugin that reads their traditional configuration style. Like Debian's, it is a read-only plug-in.



          There can be more than one configuration storage plug-in in use simultaneously: all the above-mentioned major distributions also use the nm-settings-keyfile plug-in, which reads & writes configuration files in /etc/NetworkManager/system-connections/. This format can cover more cases than the legacy configuration formats, so it is used as an alternate storage format... although it might eventually become the primary format instead.



          If you are using NetworkManager and modify the network configuration manually (i.e. not through nmtui, nmcli or any other Network Manager user interface tool), then you should tell it to reread the configuration when you're done:



          nmcli connection reload


          which can be shortened all the way to



          nmcli c r


          Once you do that, NetworkManager will automatically restart the network interfaces as necessary - and only the interfaces that actually need restarting. This works regardless of where your network configuration actually lives.



          In modern Debian, there are several ways to configure network interfaces:




          • traditional ifupdown, which requires service networking restart to reload configuration


          • NetworkManager, which uses nmcli c r to reload configuration


          • systemd-networkd, which apparently uses systemctl daemon-reload to reload configuration (I've never tried that yet)


          In general, you should decide which configuration method to use: usually for the whole system, but you can use multiple methods in a single system if you absolutely have to. Just make sure you use only one method to manage each interface: if two methods each have a different configuration for the same interface, you're going to see odd behaviors.






          share|improve this answer





















          • root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
            – Luciano Andress Martini
            Nov 23 at 10:45












          • Well i will try the systemd method...
            – Luciano Andress Martini
            Nov 23 at 10:47










          • No i still dont have no lucky.
            – Luciano Andress Martini
            Nov 23 at 10:48










          • service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
            – Luciano Andress Martini
            Nov 23 at 10:49












          • It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
            – Luciano Andress Martini
            Nov 23 at 10:54




















          up vote
          0
          down vote



          accepted










          I tried a fresh Debian install without graphical interface but using the graphical installator i am running Debian 9.6.



          Then i edited /etc/network/interfaces and restart the system, to see if the ip was changed. And yes it worked. So it is being used in some way.



          Well, i edited it again to try change the ip without restarting the system.
          First of all i tried the solutions from the other answer:



          #nmcli connection reload
          nmcli connection reload The program 'nmcli' is currently not installed.
          You can install it by typing: apt install network-manager
          nmcli: command not found.
          (my comment: well it seems NetworkManager was not installed is that right?)

          #systemctl daemon-reload
          (nothing happens ip didnt change)

          #systemctl networking restart
          (the ip did not change but the connection is now broken, until restart for some unknown reason)


          The solution that i found is this (but i think that is not a real solution):



          ip address delete theoldip/mask dev enp0s3 
          ifdown enp0s3
          ifup enp0s3


          Or just restart the system after editing /etc/network/interfaces






          share|improve this answer























          • I sended a email to some kind of debian list, lets see what happen.
            – Luciano Andress Martini
            Nov 23 at 12:23













          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%2f483427%2funable-to-restart-networking-on-debian-with-systemd%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








          up vote
          1
          down vote













          NetworkManager's configuration storage is more versatile than you think.



          NetworkManager has multiple different plug-ins for configuration storage. RedHat and related distributions use nm-settings-ifcfg-rh which uses (and extends) classic RedHat-style /etc/sysconfig/network-scripts/ifcfg-* and .../route-* files.



          Debian and related distributions, on the other hand, use nm-settings-plugin-ifupdown instead: that reads Debian's traditional /etc/network/interfaces file. Unlike RedHat's solution, this is a purely read-only plug-in.



          SuSE also has a NetworkManager plugin that reads their traditional configuration style. Like Debian's, it is a read-only plug-in.



          There can be more than one configuration storage plug-in in use simultaneously: all the above-mentioned major distributions also use the nm-settings-keyfile plug-in, which reads & writes configuration files in /etc/NetworkManager/system-connections/. This format can cover more cases than the legacy configuration formats, so it is used as an alternate storage format... although it might eventually become the primary format instead.



          If you are using NetworkManager and modify the network configuration manually (i.e. not through nmtui, nmcli or any other Network Manager user interface tool), then you should tell it to reread the configuration when you're done:



          nmcli connection reload


          which can be shortened all the way to



          nmcli c r


          Once you do that, NetworkManager will automatically restart the network interfaces as necessary - and only the interfaces that actually need restarting. This works regardless of where your network configuration actually lives.



          In modern Debian, there are several ways to configure network interfaces:




          • traditional ifupdown, which requires service networking restart to reload configuration


          • NetworkManager, which uses nmcli c r to reload configuration


          • systemd-networkd, which apparently uses systemctl daemon-reload to reload configuration (I've never tried that yet)


          In general, you should decide which configuration method to use: usually for the whole system, but you can use multiple methods in a single system if you absolutely have to. Just make sure you use only one method to manage each interface: if two methods each have a different configuration for the same interface, you're going to see odd behaviors.






          share|improve this answer





















          • root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
            – Luciano Andress Martini
            Nov 23 at 10:45












          • Well i will try the systemd method...
            – Luciano Andress Martini
            Nov 23 at 10:47










          • No i still dont have no lucky.
            – Luciano Andress Martini
            Nov 23 at 10:48










          • service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
            – Luciano Andress Martini
            Nov 23 at 10:49












          • It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
            – Luciano Andress Martini
            Nov 23 at 10:54

















          up vote
          1
          down vote













          NetworkManager's configuration storage is more versatile than you think.



          NetworkManager has multiple different plug-ins for configuration storage. RedHat and related distributions use nm-settings-ifcfg-rh which uses (and extends) classic RedHat-style /etc/sysconfig/network-scripts/ifcfg-* and .../route-* files.



          Debian and related distributions, on the other hand, use nm-settings-plugin-ifupdown instead: that reads Debian's traditional /etc/network/interfaces file. Unlike RedHat's solution, this is a purely read-only plug-in.



          SuSE also has a NetworkManager plugin that reads their traditional configuration style. Like Debian's, it is a read-only plug-in.



          There can be more than one configuration storage plug-in in use simultaneously: all the above-mentioned major distributions also use the nm-settings-keyfile plug-in, which reads & writes configuration files in /etc/NetworkManager/system-connections/. This format can cover more cases than the legacy configuration formats, so it is used as an alternate storage format... although it might eventually become the primary format instead.



          If you are using NetworkManager and modify the network configuration manually (i.e. not through nmtui, nmcli or any other Network Manager user interface tool), then you should tell it to reread the configuration when you're done:



          nmcli connection reload


          which can be shortened all the way to



          nmcli c r


          Once you do that, NetworkManager will automatically restart the network interfaces as necessary - and only the interfaces that actually need restarting. This works regardless of where your network configuration actually lives.



          In modern Debian, there are several ways to configure network interfaces:




          • traditional ifupdown, which requires service networking restart to reload configuration


          • NetworkManager, which uses nmcli c r to reload configuration


          • systemd-networkd, which apparently uses systemctl daemon-reload to reload configuration (I've never tried that yet)


          In general, you should decide which configuration method to use: usually for the whole system, but you can use multiple methods in a single system if you absolutely have to. Just make sure you use only one method to manage each interface: if two methods each have a different configuration for the same interface, you're going to see odd behaviors.






          share|improve this answer





















          • root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
            – Luciano Andress Martini
            Nov 23 at 10:45












          • Well i will try the systemd method...
            – Luciano Andress Martini
            Nov 23 at 10:47










          • No i still dont have no lucky.
            – Luciano Andress Martini
            Nov 23 at 10:48










          • service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
            – Luciano Andress Martini
            Nov 23 at 10:49












          • It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
            – Luciano Andress Martini
            Nov 23 at 10:54















          up vote
          1
          down vote










          up vote
          1
          down vote









          NetworkManager's configuration storage is more versatile than you think.



          NetworkManager has multiple different plug-ins for configuration storage. RedHat and related distributions use nm-settings-ifcfg-rh which uses (and extends) classic RedHat-style /etc/sysconfig/network-scripts/ifcfg-* and .../route-* files.



          Debian and related distributions, on the other hand, use nm-settings-plugin-ifupdown instead: that reads Debian's traditional /etc/network/interfaces file. Unlike RedHat's solution, this is a purely read-only plug-in.



          SuSE also has a NetworkManager plugin that reads their traditional configuration style. Like Debian's, it is a read-only plug-in.



          There can be more than one configuration storage plug-in in use simultaneously: all the above-mentioned major distributions also use the nm-settings-keyfile plug-in, which reads & writes configuration files in /etc/NetworkManager/system-connections/. This format can cover more cases than the legacy configuration formats, so it is used as an alternate storage format... although it might eventually become the primary format instead.



          If you are using NetworkManager and modify the network configuration manually (i.e. not through nmtui, nmcli or any other Network Manager user interface tool), then you should tell it to reread the configuration when you're done:



          nmcli connection reload


          which can be shortened all the way to



          nmcli c r


          Once you do that, NetworkManager will automatically restart the network interfaces as necessary - and only the interfaces that actually need restarting. This works regardless of where your network configuration actually lives.



          In modern Debian, there are several ways to configure network interfaces:




          • traditional ifupdown, which requires service networking restart to reload configuration


          • NetworkManager, which uses nmcli c r to reload configuration


          • systemd-networkd, which apparently uses systemctl daemon-reload to reload configuration (I've never tried that yet)


          In general, you should decide which configuration method to use: usually for the whole system, but you can use multiple methods in a single system if you absolutely have to. Just make sure you use only one method to manage each interface: if two methods each have a different configuration for the same interface, you're going to see odd behaviors.






          share|improve this answer












          NetworkManager's configuration storage is more versatile than you think.



          NetworkManager has multiple different plug-ins for configuration storage. RedHat and related distributions use nm-settings-ifcfg-rh which uses (and extends) classic RedHat-style /etc/sysconfig/network-scripts/ifcfg-* and .../route-* files.



          Debian and related distributions, on the other hand, use nm-settings-plugin-ifupdown instead: that reads Debian's traditional /etc/network/interfaces file. Unlike RedHat's solution, this is a purely read-only plug-in.



          SuSE also has a NetworkManager plugin that reads their traditional configuration style. Like Debian's, it is a read-only plug-in.



          There can be more than one configuration storage plug-in in use simultaneously: all the above-mentioned major distributions also use the nm-settings-keyfile plug-in, which reads & writes configuration files in /etc/NetworkManager/system-connections/. This format can cover more cases than the legacy configuration formats, so it is used as an alternate storage format... although it might eventually become the primary format instead.



          If you are using NetworkManager and modify the network configuration manually (i.e. not through nmtui, nmcli or any other Network Manager user interface tool), then you should tell it to reread the configuration when you're done:



          nmcli connection reload


          which can be shortened all the way to



          nmcli c r


          Once you do that, NetworkManager will automatically restart the network interfaces as necessary - and only the interfaces that actually need restarting. This works regardless of where your network configuration actually lives.



          In modern Debian, there are several ways to configure network interfaces:




          • traditional ifupdown, which requires service networking restart to reload configuration


          • NetworkManager, which uses nmcli c r to reload configuration


          • systemd-networkd, which apparently uses systemctl daemon-reload to reload configuration (I've never tried that yet)


          In general, you should decide which configuration method to use: usually for the whole system, but you can use multiple methods in a single system if you absolutely have to. Just make sure you use only one method to manage each interface: if two methods each have a different configuration for the same interface, you're going to see odd behaviors.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 at 15:23









          telcoM

          14.5k11842




          14.5k11842












          • root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
            – Luciano Andress Martini
            Nov 23 at 10:45












          • Well i will try the systemd method...
            – Luciano Andress Martini
            Nov 23 at 10:47










          • No i still dont have no lucky.
            – Luciano Andress Martini
            Nov 23 at 10:48










          • service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
            – Luciano Andress Martini
            Nov 23 at 10:49












          • It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
            – Luciano Andress Martini
            Nov 23 at 10:54




















          • root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
            – Luciano Andress Martini
            Nov 23 at 10:45












          • Well i will try the systemd method...
            – Luciano Andress Martini
            Nov 23 at 10:47










          • No i still dont have no lucky.
            – Luciano Andress Martini
            Nov 23 at 10:48










          • service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
            – Luciano Andress Martini
            Nov 23 at 10:49












          • It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
            – Luciano Andress Martini
            Nov 23 at 10:54


















          root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
          – Luciano Andress Martini
          Nov 23 at 10:45






          root@servidor01:~# nmcli connection reload The program 'nmcli' is currently not installed. You can install it by typing: apt install network-manager nmcli: command not found. Consider that you still dont have network connection for use nmcli....
          – Luciano Andress Martini
          Nov 23 at 10:45














          Well i will try the systemd method...
          – Luciano Andress Martini
          Nov 23 at 10:47




          Well i will try the systemd method...
          – Luciano Andress Martini
          Nov 23 at 10:47












          No i still dont have no lucky.
          – Luciano Andress Martini
          Nov 23 at 10:48




          No i still dont have no lucky.
          – Luciano Andress Martini
          Nov 23 at 10:48












          service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
          – Luciano Andress Martini
          Nov 23 at 10:49






          service networking restart, disconnected me from ssh, but when i look to the phisical machine it is still with the old ip configured, and the network is not working properly anymore, until restart (that if i dont want to start configuring the interfaces manually)
          – Luciano Andress Martini
          Nov 23 at 10:49














          It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
          – Luciano Andress Martini
          Nov 23 at 10:54






          It is a fresh install, i think there is a bug, but 1 year later, i reinstalled debian, and i am surprised that debian Systemd when running in text mode is still doing this so i cant believe in that, i am trying to believe that i am doing something wrong... I have another friend that dont care about this, they just restart the server, i was thinking that couldnt be right, so i decided to test again!
          – Luciano Andress Martini
          Nov 23 at 10:54














          up vote
          0
          down vote



          accepted










          I tried a fresh Debian install without graphical interface but using the graphical installator i am running Debian 9.6.



          Then i edited /etc/network/interfaces and restart the system, to see if the ip was changed. And yes it worked. So it is being used in some way.



          Well, i edited it again to try change the ip without restarting the system.
          First of all i tried the solutions from the other answer:



          #nmcli connection reload
          nmcli connection reload The program 'nmcli' is currently not installed.
          You can install it by typing: apt install network-manager
          nmcli: command not found.
          (my comment: well it seems NetworkManager was not installed is that right?)

          #systemctl daemon-reload
          (nothing happens ip didnt change)

          #systemctl networking restart
          (the ip did not change but the connection is now broken, until restart for some unknown reason)


          The solution that i found is this (but i think that is not a real solution):



          ip address delete theoldip/mask dev enp0s3 
          ifdown enp0s3
          ifup enp0s3


          Or just restart the system after editing /etc/network/interfaces






          share|improve this answer























          • I sended a email to some kind of debian list, lets see what happen.
            – Luciano Andress Martini
            Nov 23 at 12:23

















          up vote
          0
          down vote



          accepted










          I tried a fresh Debian install without graphical interface but using the graphical installator i am running Debian 9.6.



          Then i edited /etc/network/interfaces and restart the system, to see if the ip was changed. And yes it worked. So it is being used in some way.



          Well, i edited it again to try change the ip without restarting the system.
          First of all i tried the solutions from the other answer:



          #nmcli connection reload
          nmcli connection reload The program 'nmcli' is currently not installed.
          You can install it by typing: apt install network-manager
          nmcli: command not found.
          (my comment: well it seems NetworkManager was not installed is that right?)

          #systemctl daemon-reload
          (nothing happens ip didnt change)

          #systemctl networking restart
          (the ip did not change but the connection is now broken, until restart for some unknown reason)


          The solution that i found is this (but i think that is not a real solution):



          ip address delete theoldip/mask dev enp0s3 
          ifdown enp0s3
          ifup enp0s3


          Or just restart the system after editing /etc/network/interfaces






          share|improve this answer























          • I sended a email to some kind of debian list, lets see what happen.
            – Luciano Andress Martini
            Nov 23 at 12:23















          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          I tried a fresh Debian install without graphical interface but using the graphical installator i am running Debian 9.6.



          Then i edited /etc/network/interfaces and restart the system, to see if the ip was changed. And yes it worked. So it is being used in some way.



          Well, i edited it again to try change the ip without restarting the system.
          First of all i tried the solutions from the other answer:



          #nmcli connection reload
          nmcli connection reload The program 'nmcli' is currently not installed.
          You can install it by typing: apt install network-manager
          nmcli: command not found.
          (my comment: well it seems NetworkManager was not installed is that right?)

          #systemctl daemon-reload
          (nothing happens ip didnt change)

          #systemctl networking restart
          (the ip did not change but the connection is now broken, until restart for some unknown reason)


          The solution that i found is this (but i think that is not a real solution):



          ip address delete theoldip/mask dev enp0s3 
          ifdown enp0s3
          ifup enp0s3


          Or just restart the system after editing /etc/network/interfaces






          share|improve this answer














          I tried a fresh Debian install without graphical interface but using the graphical installator i am running Debian 9.6.



          Then i edited /etc/network/interfaces and restart the system, to see if the ip was changed. And yes it worked. So it is being used in some way.



          Well, i edited it again to try change the ip without restarting the system.
          First of all i tried the solutions from the other answer:



          #nmcli connection reload
          nmcli connection reload The program 'nmcli' is currently not installed.
          You can install it by typing: apt install network-manager
          nmcli: command not found.
          (my comment: well it seems NetworkManager was not installed is that right?)

          #systemctl daemon-reload
          (nothing happens ip didnt change)

          #systemctl networking restart
          (the ip did not change but the connection is now broken, until restart for some unknown reason)


          The solution that i found is this (but i think that is not a real solution):



          ip address delete theoldip/mask dev enp0s3 
          ifdown enp0s3
          ifup enp0s3


          Or just restart the system after editing /etc/network/interfaces







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 at 11:50

























          answered Nov 23 at 11:13









          Luciano Andress Martini

          3,345930




          3,345930












          • I sended a email to some kind of debian list, lets see what happen.
            – Luciano Andress Martini
            Nov 23 at 12:23




















          • I sended a email to some kind of debian list, lets see what happen.
            – Luciano Andress Martini
            Nov 23 at 12:23


















          I sended a email to some kind of debian list, lets see what happen.
          – Luciano Andress Martini
          Nov 23 at 12:23






          I sended a email to some kind of debian list, lets see what happen.
          – Luciano Andress Martini
          Nov 23 at 12:23




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483427%2funable-to-restart-networking-on-debian-with-systemd%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

          Morgemoulin

          Scott Moir

          Souastre