I am checking something out in my connection and I just wanted to ask, is there a way to auto-disconnect and connect from the internet.

For example say I want to disconnect now and reconnect to the internet in 0.05 seconds, is there any program that does that on Fedora Linux?

link|improve this question
2  
Belongs on serverfault – Noufal Ibrahim Jan 19 '10 at 18:08
feedback

migrated from stackoverflow.com Jan 19 '10 at 18:31

This question came from our site for professional and enthusiast programmers.

1 Answer

You just have to script the following commands

sudo ifconfig eth0 down
sudo ifconfig eth0 up
link|improve this answer
3  
With eth0 being the interface used (it can be wlan0 or anything else). – Pikrass Jan 19 '10 at 18:08
You should be able to save a few keystrokes by doing sudo ifdown eth0 and sudo ifup eth0. – VxJasonxV Sep 27 '10 at 12:28
feedback

Your Answer

 
or
required, but never shown