Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 19 '10 at 18:31

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

1 Answer 1

You just have to script the following commands

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.