[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/init.d/networking does not start everything in /etc/network/interfaces



* tomas@tuxteam.de <tomas@tuxteam.de> [2016-05-17 15:08 +0200]:

> On Tue, May 17, 2016 at 02:16:32PM +0200, Elimar Riesebieter wrote:
> 
> [...]
> 
> > Ask your search engine: "init.d/networking restart is deprecated"
> 
> I don't know about yours, but *my* /etc/init.d/networking is alive
> and healthy! More to the point, it's so useful to me that I'd rewrite
> it, should it fall off Debian.
> 
> Instead of scaring off people by some strange warning picked out of
> the huge echo chamber of the Intertubesi [1], how about doing some
> real research and explain to people what's up?

I don't understand why  "init.d/networking restart is deprecated" is
scaring off people? It is a matter of fact! Reading the results will
give all answers a user want.

> /etc/init.d/networking will bring your system to its default state
> (like after a reboot). Thus, the interfaces marked with "auto" in
> /etc/network/interfaces will be up, all others, down.

Well, you must be sure that all interfaces in your system get their
assigned names. To make sure they will, you have to define udev
rules, probably by hand if not done by udev itself ( i.e.
/etc/udev/rules.d/70-persistent-net.rules).

> Anything you changed manually since boot (e.g. by issuing an
> explicit "sudo ifup eth0", same for an ifdown) will be gone.
> This could be, depending on circumstances, somewhat unexpected,
> unwanted, or totally intended.
> 
> In my opinion, a warning is in order ("this might not be doing
> what you think it does"), but deprecated seems exaggerated to me.

On modern systems running systemd (and in some circumstances
sysvinit sytems as well) you may get unwanted if names. So
users have to keep their eyes on what is deprecated (which may be
valid only for future updates) and can be obtained on legacy
installations as well. Just FYI:

https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

So rely on the kernel in naming network interfaces is nothing else
as a guess.

Sigh
Elimar
-- 
  Obviously the human brain works like a computer.
  Since there are no stupid computers humans can't be stupid.
  There are just a few running with Windows or even CE ;-)


Reply to: