[ltp] Dial Up, Dsl, & Wifi Connection

James Knott linux-thinkpad@linux-thinkpad.org
Wed, 15 Dec 2004 16:17:39 -0500


SOTL wrote:
> On Tuesday 14 December 2004 03:45 pm, James Knott wrote:
> 
>>SOTL wrote:
>>
>>>Any way to configure the system or a profile such that Linux acts like
>>>that !@#$% called Microsoft does. That is where you connect to any one of
>>>the three DSL, WiFi, or modem without switching profiles.
>>
>>I wrote a pair of scripts, that shut down ethernet and start wifi, as
>>well as the reverse.  I also have another pair, that do the same for dial
>>up
> 
> 
> I would appreciate a copy your script and description [short] of what it does.
> 
> Frank
> 

Here's the one that stops ethernet and starts WiFi

/sbin/ifdown eth-id-00:00:e2:8a:26:aa
/sbin/ifup wlan-id-00:20:e0:8a:a6:ce

And the one that stops WiFi and starts ethernet

/sbin/ifdown wlan-id-00:20:e0:8a:a6:ce
/sbin/ifup eth-id-00:00:e2:8a:26:aa

As I said, they're very simple.
I use the full NIC ID, as there's no guarantee that ethernet will always 
be eth1 etc.