Answer the question
In order to leave comments, you need to log in
Prompt non "deprecated" way to restart networking in Debian and Ubuntu
Good afternoon, hackers!
For many years now, on Debian-based servers, when I restart the network, I get the following message:
[email protected]:~# /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...done.
So it became interesting to me, but which method is not outdated and the most correct today
. Thank you in advance.
UPD: I manage servers via ssh.
Answer the question
In order to leave comments, you need to log in
service networking stop && service networking start
or
service networking reload if you only want to change addresses, no big changes.
> ifconfig eth0 down && ifconfig eth0 up That's definitely not worth doing =)
It is assumed (by the authors of the warning) that we are talking about service networking restart Only it also works lousy.
By the way, they don’t lie about “it may not re-enable some interfaces”. Already once on the “large” servers it didn’t work, I had to send messengers ...
ifdown eth0; ifup eth0
Never let me down.
Well, unless you screw up a lot in the settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question