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?
debian networking
add a comment |
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?
debian networking
add a comment |
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?
debian networking
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
debian networking
edited Nov 23 at 21:29
Michael Prokopec
59915
59915
asked Nov 22 at 11:50
Luciano Andress Martini
3,345930
3,345930
add a comment |
add a comment |
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 requiresservice networking restart
to reload configuration
NetworkManager
, which usesnmcli c r
to reload configuration
systemd-networkd
, which apparently usessystemctl 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.
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
|
show 10 more comments
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
I sended a email to some kind of debian list, lets see what happen.
– Luciano Andress Martini
Nov 23 at 12:23
add a comment |
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 requiresservice networking restart
to reload configuration
NetworkManager
, which usesnmcli c r
to reload configuration
systemd-networkd
, which apparently usessystemctl 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.
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
|
show 10 more comments
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 requiresservice networking restart
to reload configuration
NetworkManager
, which usesnmcli c r
to reload configuration
systemd-networkd
, which apparently usessystemctl 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.
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
|
show 10 more comments
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 requiresservice networking restart
to reload configuration
NetworkManager
, which usesnmcli c r
to reload configuration
systemd-networkd
, which apparently usessystemctl 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.
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 requiresservice networking restart
to reload configuration
NetworkManager
, which usesnmcli c r
to reload configuration
systemd-networkd
, which apparently usessystemctl 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.
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
|
show 10 more comments
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
|
show 10 more comments
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
I sended a email to some kind of debian list, lets see what happen.
– Luciano Andress Martini
Nov 23 at 12:23
add a comment |
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
I sended a email to some kind of debian list, lets see what happen.
– Luciano Andress Martini
Nov 23 at 12:23
add a comment |
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
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
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
add a comment |
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
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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