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

Re: Easy way to restart network

On Mon, 08 Aug 2011 19:33:31 +0200, Tomas Kral wrote:

> What is the recommended and easy way to restart network subsystem on a
> desktop without need of rebooting the computer?

/etc/init.d/networking stop && /etc/init.d/networking start


> On Lenny I used to, as admin, execute something like this,


> On Squeeze, it sometimes complains that eth1 device does not exist yet.
> My idea is to automate the task, and set a watchdog over ISP connection,
> and call a safe script when it drops to bring it up again.

Yep, you also need to run "ifup eth1".



Reply to: