Easy way to restart network
What is the recommended and easy way to restart network subsystem on a
desktop without need of rebooting the computer?
My installation is a home use, multi-user, family sort of thing
I have CDC_ETHER broadband connection to an ISP. Cable modem is plugged
to na USB port.
eth1 is ISP
eth0 is home-net rooted to WiFi
I use NAT (ip_masquerade)
Time to time, say once in a week, I need to restart network for various
reasons, connection drops by ISP, does not come up at system boot, etc.
On Lenny I used to, as admin, execute something like this,
# restart network
modprobe -r cdc_ether;\
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.
Tomas Kral <email@example.com>