Go Back   Wireless and Wifi Forums > News > Newsgroups > alt.internet.wireless
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2006, 10:11 PM
John Navas
Guest
 
Posts: n/a
Default Re: disable wireless upon ethernet connection

On Tue, 11 Jul 2006 05:50:55 GMT, John Navas
<spamfilter0@navasgroup.com> wrote in
<c6e6b25njailmpdcac9pl3mln4snkap44j@4ax.com>:

>On Mon, 10 Jul 2006 22:15:28 -0700, Jeff Liebermann
><jeffl@comix.santa-cruz.ca.us> wrote in
><qub6b2164p065tbb6b4jblc19gtnhef1o1@4ax.com>:
>
>>John Navas <spamfilter0@navasgroup.com> hath wroth:
>>
>>>On 10 Jul 2006 12:29:23 -0700, ericooi@gmail.com wrote in
>>><1152559763.873836.82120@s13g2000cwa.googlegrou ps.com>:
>>>
>>>>I was wondering whether or not there was a method to auto disable my
>>>>wireless connection whenever I connect through a LAN/ethernet line?
>>>
>>>Windows will use the last connection you make.

>>
>>I beg to differ. Windoze assigns different route metrics to the
>>ethernet and wireless connections. Ethernet is considered the
>>"better" route and is used if available. See my tinkering at:
>>| http://groups.google.com/group/alt.i...de116db990c9be


I was actually partially correct -- see below.

>I beg to differ back :) -- it's not that simple. For example, I'm now
>using a Wi-Fi connection with an automatic metric of 25. See The Cable
>Guy -- April 2005, "Windows XP and Windows Server 2003 Behavior When
>Connected to Both Wired and Wireless Networks"
><http://www.microsoft.com/technet/community/columns/cableguy/cg0405.mspx>:
>
> * If there are multiple default routes with the lowest metric, choose
> the default route corresponding to the network adapter that is
> highest in the binding order.
>
>The table right below that quote is more complete than your experiments,
>with differing metrics for different interfaces. Note that:
>
>* 10BaseT has the same metric as 802.11b, resolved by binding order.
>
>That what I was thinking of, but of course my statement wasn't correct
>in the general case. [blush]
>
>* 10BaseT has a higher metric than 802.11a or 802.11g, and so won't be
>favored over wireless.
>
>* 100BaseT trumps everything else.
>
>So if the OP has 100BaseT, then it will automatically take over from
>wireless, which is what he wants. If on the other hard he has 10BaseT.
>then it won't trump 802.11a or 802.11g, and might not even trump
>802.11b.
>...


Since then it's been bugging me why Windows has automatically switched
to lower speed connections I've made, which wouldn't seem to make sense
given the above. For example, here's a route table with two Internet
connections, excellent Wi-Fi "g" at a reported 54 Mbps, and EGPRS(EDGE)
at under 200 Kbps over Bluetooth (with a virtual port speed of 460
Kbps):

|Active Routes:
|Network Destination Netmask Gateway Interface Metric
| 0.0.0.0 0.0.0.0 10.199.205.61 10.199.205.61 1
| 0.0.0.0 0.0.0.0 172.16.8.2 172.16.8.43 26
| 10.199.205.61 255.255.255.255 127.0.0.1 127.0.0.1 50
| 10.255.255.255 255.255.255.255 10.199.205.61 10.199.205.61 50
| 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
| 169.254.0.0 255.255.0.0 172.16.8.43 172.16.8.43 30
| 172.16.8.0 255.255.255.0 172.16.8.43 172.16.8.43 25
| 172.16.8.43 255.255.255.255 127.0.0.1 127.0.0.1 25
| 172.16.255.255 255.255.255.255 172.16.8.43 172.16.8.43 25
| 192.168.100.101 255.255.255.255 10.199.205.61 10.199.205.61 1
| 224.0.0.0 240.0.0.0 172.16.8.43 172.16.8.43 25
| 224.0.0.0 240.0.0.0 10.199.205.61 10.199.205.61 1
| 255.255.255.255 255.255.255.255 10.199.205.61 3 1
| 255.255.255.255 255.255.255.255 10.199.205.61 10.199.205.61 1
| 255.255.255.255 255.255.255.255 172.16.8.43 172.16.8.43 1
|Default Gateway: 10.199.205.61

Wi-Fi "g" Interface is 172.16.8.43; EGPRS Interface is 10.199.205.61
The EGPRS Metric of 1 trumps the Wi-Fi "g" Metric of 26 (note how it was
bumped up from 25 to 26), making it the Default Gateway. If I now
disconnect the EGPRS:

|Active Routes:
|Network Destination Netmask Gateway Interface Metric
| 0.0.0.0 0.0.0.0 172.16.8.2 172.16.8.43 25
| 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
| 169.254.0.0 255.255.0.0 172.16.8.43 172.16.8.43 30
| 172.16.8.0 255.255.255.0 172.16.8.43 172.16.8.43 25
| 172.16.8.43 255.255.255.255 127.0.0.1 127.0.0.1 25
| 172.16.255.255 255.255.255.255 172.16.8.43 172.16.8.43 25
| 224.0.0.0 240.0.0.0 172.16.8.43 172.16.8.43 25
| 255.255.255.255 255.255.255.255 172.16.8.43 3 1
| 255.255.255.255 255.255.255.255 172.16.8.43 172.16.8.43 1
|Default Gateway: 172.16.8.2

This behavior is what I had in mind when I originally wrote, "Windows
will use the last connection you make." It happens because EGPRS is a
Dial-Up connection. This behavior is controlled by the option "Use
default gateway on remote network" in Advanced TCP/IP Settings for
Dial-up Network Adapters.

For non-Dial-up Network Adapters, Metrics can be controlled with the
Interface Metric option in Advanced TCP/IP Settings. This would allow
the OP to do just what he wants no matter the speeds of the wireless and
wired connections.

--
Best regards, FAQ for Wireless Internet: <http://Wireless.wikia.com>
John Navas FAQ for Wi-Fi: <http://wireless.wikia.com/wiki/Wi-Fi>
Wi-Fi How To: <http://wireless.wikia.com/wiki/Wi-Fi_HowTo>
Fixes to Wi-Fi Problems: <http://wireless.wikia.com/wiki/Wi-Fi_Fixes>

Reply With Quote
  #2 (permalink)  
Old 08-04-2006, 04:26 AM
Jeff Liebermann
Guest
 
Posts: n/a
Default Re: disable wireless upon ethernet connection

John Navas <spamfilter0@navasgroup.com> hath wroth:
>>I beg to differ back :) -- it's not that simple. For example, I'm now
>>using a Wi-Fi connection with an automatic metric of 25. See The Cable
>>Guy -- April 2005, "Windows XP and Windows Server 2003 Behavior When
>>Connected to Both Wired and Wireless Networks"
>><http://www.microsoft.com/technet/community/columns/cableguy/cg0405.mspx>:

(...)
>This behavior is what I had in mind when I originally wrote, "Windows
>will use the last connection you make." It happens because EGPRS is a
>Dial-Up connection. This behavior is controlled by the option "Use
>default gateway on remote network" in Advanced TCP/IP Settings for
>Dial-up Network Adapters.
>
>For non-Dial-up Network Adapters, Metrics can be controlled with the
>Interface Metric option in Advanced TCP/IP Settings. This would allow
>the OP to do just what he wants no matter the speeds of the wireless and
>wired connections.


Nice investigation. I was wondering how this worked. I had the same
experience. As soon as I fired up a dialup connection, my ethernet
connected network connection died and the default route went to the
dialup.

I did some digging in the MS Knowledge pile and found:

An explanation of the Automatic Metric feature for Internet Protocol
routes
http://support.microsoft.com/default...b;en-us;299540

The default values for XP SP2 are:
Link Speed Metric
Greater than 200 Mb 10
Greater than 80 Mb, and less than or equal to 200 Mb 20
Greater than 20 Mb, and less than or equal to 80 Mb 25
Greater than 4 Mb, and less than or equal to 20 Mb 30
Greater than 500 Kb, and less than or equal to 4 Mb 40
Less than or equal to 500 Kb 50


Description of the Wireless LAN Route Table Metric Behavior
http://support.microsoft.com/?kbid=315088

Configuring Multiple Adapters on the Same Physical Network
http://support.microsoft.com/kb/258487/EN-US/

--
Jeff Liebermann jeffl@comix.santa-cruz.ca.us
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558

Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony Vaio Wireless Network Connection problems with WEP / WPA security - SOLUTION!! nevinster Troubleshooting 2 06-15-2008 04:27 PM
WiMAX Forum News, Weekly Clip Report March 22-29, 2007 badger_b@hotmail.com alt.internet.wireless 0 03-31-2007 01:14 AM
How can I have a wireless connection to the internet? please help Reza alt.internet.wireless 2 07-26-2006 06:09 PM
The Repeater, Access Point, Laptop Triangle of Death (Please Help) TheKingsCrown Network Troubleshooting 9 04-25-2006 04:01 AM
Wireless connection goes stale eric.goforth@gmail.com alt.internet.wireless 1 10-16-2005 10:51 PM


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45