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?

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

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


You just have to script the following commands

sudo ifconfig eth0 down
sudo ifconfig eth0 up
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy