View Full Version : Wireless - Ethernet Switch
19th August 2004, 12:19 PM
I have FC2 installed on a Thinkpad. I have both wired (eth0) and wireless (eth1) connections running. I'd prefer to run wired in the dock and wireless out of it. What is the best way to switch between the two?
20th August 2004, 04:00 AM
As "root", you can enable/disable the connections in a terminal window quite easily:
# ifup ethx
# ifdown ethx
The first will bring "up" an interface, the second will bring it "down." It would be better to down the active connection before bringing the other one up.
You can also use the GUI manager (System Settings -> Network) to enable/disable (up/down) the interfaces, as well.
20th August 2004, 08:06 AM
Thanks for the reply. I was using both methods, but I thought there might be something a bit more sophisticated like 'netswitcher' for windows.
21st August 2004, 05:32 AM
You can write your own shell-script (bash is pretty easy to learn) that'll do it for you.
21st August 2004, 09:30 AM
Ok I'll look into it, thanks.
21st August 2004, 09:44 AM
crackers shouldnt this be type like this: /sbin/ifup ethx same for other command?
21st August 2004, 06:11 PM
Yes, that's the full path to the commands, but you have to be root to execute the scripts. I'm lazy that when I need to I'll use "su -" to get the $PATH set.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.