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

Re: Restarting network



On 07/07/11 22:46, Brian wrote:
On Thu 07 Jul 2011 at 20:45:54 +0100, Joe wrote:

But presumably at boot, all interfaces, whether auto or not, are
successfully started, and presumably properly closed down on shutdown.

When booting, interfaces marked 'auto' are brought up by scripts in
/etc/init.d. However, interfaces marked 'allow-hotplug' are brought up
by scripts run by udev. The end result is (or should be) the same but
the mechanisms are different.

Interfaces marked with neither are not activated.

Is there no command-line access to whatever mechanism does this? Do we
really need to keep a list of current interface names on a sticky
note on the monitor and ifup them individually?

ifup/ifdown will always do what their names imply. You would need to
have knowledge of the interfaces on your machine to use the commands. A
sticky-note might help. :)

The point which the OP raised was the purpose of /etc/init.d/networking
(or perhaps, like me, he was puzzled by the use of the word
'deprecated).  It sounds as though it will enable all interfaces. It
doesn't, unless they are marked 'auto',

So - some lateral thinking. Mark every interface (apart from lo) auto
*and* 'allow-hotplug'. '/etc/init.d/networking restart' or
'/etc/init.d/networking start' would now work. Does that address your
query?

There are two schools of thought about this. One is that it is bad, the
other is that it is ok.


I'm the OP.
Thanks, all, for your help and advice.

Being able to issue a 'restart' on a service has become the de facto way of indicating a configuration change. I would have thought that the devs, instead of just issuing a warning, could have worked round the problem. Maybe it's on someone's todo list.

It looks to me, that as I have a simple network, with a single interface, I'd be quite safe in ignoring the warning.

Cheers, Tony
--
Tony van der Hoff        | mailto:tony@vanderhoff.org
Buckinghamshire, England |


Reply to: