J
J
juffinhalli2013-07-11 08:37:22
linux
juffinhalli, 2013-07-11 08:37:22

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

7 answer(s)
A
Andrey Kravchuk, 2013-07-11
@juffinhalli

service networking stop && service networking start
or
service networking reload if you only want to change addresses, no big changes.

A
AxisPod, 2013-07-11
@AxisPod

And my
service networking restart
does not swear, everything is fine.

V
Vlad Zhivotnev, 2013-11-14
@inkvizitor68sl

> 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.

O
oia, 2013-07-11
@oia

ifconfig eth0 down && ifconfig eth0 up

D
Dmitry Agafonov, 2013-07-11
@AgaFonOff

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 ...

J
Jodes, 2013-07-12
@Jodes

ifdown eth0; ifup eth0
Never let me down.
Well, unless you screw up a lot in the settings.

G
Grims, 2015-12-25
@grims

I'll leave it here for those who are looking:
Debian: Running /etc/init.d/networking restart is ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question