PDA

View Full Version : Wireless - Ethernet Switch


Harryc
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?

crackers
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.

Harryc
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.

crackers
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.

Harryc
21st August 2004, 09:30 AM
Ok I'll look into it, thanks.

imdeemvp
21st August 2004, 09:44 AM
crackers shouldnt this be type like this: /sbin/ifup ethx same for other command?

crackers
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.