0

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?

0

1 Answer 1

7

You just have to script the following commands

sudo ifconfig eth0 down
sudo ifconfig eth0 up
2
  • 3
    With eth0 being the interface used (it can be wlan0 or anything else).
    – Pikrass
    Jan 19, 2010 at 18:08
  • You should be able to save a few keystrokes by doing sudo ifdown eth0 and sudo ifup eth0.
    – VxJasonxV
    Sep 27, 2010 at 12:28

You must log in to answer this question.