[xubuntu] Restarting network and wireless

view story

http://ubuntuforums.org – On Xubuntu Karmic I access the net using a RaLink RT2561/RT61 802.11g PCI and a WiFi network that uses WPA/WPA2, EAP-TTLS, PAP security. The network sometimes "hangs" and Gnome's network manager usually reconnects automatically. Every once in a while (I'm unable to recreate it) the network-manager seems to hang and a reboot is required to get it working again. What I need is a command to restart the network manager and all my network interfaces. If i issue /etc/init.d/network-manager restart, the service restarts but nothing changes (still unable to connect to ANY network, not just the one that's WPA/WPA2, EAP-TTLS, PAP protected). If I issue a /etc/init.d/networking force-reload command I get this: * Reconfiguring network interfaces... ifdown: couldn't read interfaces file "/etc/network/interfaces" ifup: couldn't read interfaces file "/etc/network/interfaces" [fail] The same goes for ifup / ifdown commands. This is very annoying and I hope someone helps. Thanks! :D (HowTos)