How to Reset Ubuntu Network Without Reboot
Once in a while my home wireless network burbs, and I need to reconnect. . Kubuntu's network manager tries to reconnect to my network and hangs.
I have tried /etc/init.d/networking restart, and this does not cause a reconnect. All I want to do is bring the network down and restart it without rebooting. Doing things like this is what makes Linux great; I'm just trying to research the steps. |
Try these commands:
This will take down all interfaces: Code:
sudo ifdown -a Code:
sudo ifup -a |
Hi,
if you use knetworkmanager as your mentioned KDE Network Manager, restarting the networding script cannot work: 1) The script does only handle network devices that are configured in /etc/network/interfaces (on debian an related distributions - others might have a coresponding file somewhere). 2) The knetworkmanager does only manage devices that are _not_ listed in the interfaces file mentioned above. This is usefull for mobile network devices - like your wlan device. Both ways to configure network devices work complementary. If my WLAN hangs, I usually reconnect the device using the knetworkmanager GUI (translation could differ, I run no english system): Code:
1) Right click the icon Hope this one helps, Greet-o-mente |
@neilneil2000:
IIRC, for those commands is the same valid: They only manage devices configured in /etc/network/interfaces. And if the op uses knetworkmanager - what I assume - the desired device is not configured there. |
Hello
After bad experiences with networkmanager, I installed Wicd: http://wicd.sourceforge.net/ Also very easy to connect or disconnect. Bye Koen Plessers |
This performs the reset.
Quote:
thanks |
ifdown ethX,ifup ethX (X is the interface #)
|
Restart network interface Ubuntu
Code:
$ ifconfig eth0 down Code:
$ ifconfig eth0 up |
All times are GMT -5. The time now is 05:38 PM. |