Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from 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
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.