Re: Restarting network
On Thu, 7 Jul 2011 22:46:41 +0100
Brian <ad44@cityscape.co.uk> wrote:
>
> 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. :)
>
>
> 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.
>
>
Thank you, I knew some of this and since I haven't needed a networking
restart for some time, probably over a year, I haven't needed to
investigate in detail. But I've needed to do it several times in the
past, and probably will again.
The issue will only arise with something complicated i.e. a server.
Mine has two Ethernet NICs with static addresses, plus a changing
assortment of VM and VPN endpoints, which of course aren't listed in
interfaces. I have a feeling that if I do something drastic enough to
need a networking restart, I'll now need to reboot to be sure.
--
Joe
Reply to: