Re: Can the net connection binding order be changed via script or

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Thu, 23 Jun 2005 13:09:03 -0700, "Brad Adams"
<BradAdams@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>"Chuck" wrote:
>
>> On Thu, 23 Jun 2005 10:32:01 -0700, "Brad Adams"
>> <BradAdams@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> >Hello,
>> >
>> >Does anyone know if there is a way to use a script, WMI, netsh, GPO, etc to
>> >change a host's network connection binding order? We have a new wireless
>> >network and I want to avoid having docked laptops use the wireless connection
>> >when they are connected via wire to the LAN. I don't mind them getting an IP
>> >as long as they don't use wireless for their traffic when docked.
>> >
>> >Thanks in advance...
>>
>> Brad,
>>
>> Instead of writing a script, and having the script run when docking or undocking
>> a laptop, why not adjust the Automatic Metric to make the wired connection
>> preferred, when available?
>> <http://support.microsoft.com/?id=299540>

>Thanks a lot for the response. That would appear to take care of the problem.
>Few thoughts/questions though:
>
>-Does the metric correspond to the interface binding order? Or are these two
>different ways to accomplish the same result?
>
>-According to this article, the wireless connection, which should be 54Mbps,
>should be coming up lower than the wired connection at 100Mbs anyway.
>
>-Is there a way to view the automatically set metrics?
>
>-Is there a way to script this metric change?
>
>Thanks again!

Brad,

When you adjust the metric for an IP interface, the binding order becomes
irrelevant. The active interface with the lowest metric (highest speed) is
automatically selected.

You can view, and change, the metric value for any interface, in one of two
ways.
# Network Connections - (Interface) Properties - TCP/IP Properties - Advanced.
By default, the Automatic metric is selected, you de select Automatic metric and
enter a value of your choosing here.
# The Static Route table, that can be viewed by "route print", will display the
current metric for every interface. You can change any metric thru the netsh
command, and that can be scripted.

<http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/b2c92af5-425a-4c0b-8604-7a8c4ac497e0.mspx>

--
Cheers,
Chuck
http://nitecruzr.blogspot.com/
Paranoia is not a problem - it's a normal response from experience.
My email is AT DOT
actual address pchuck sonic net.
.



Relevant Pages

  • Re: BASH script to list previous IP Addresses
    ... | Here's the part of my script I have so far... ... PPP connection by my ISP, but have been reluctant to code the usually ... ~ - the name of the logical interface over which the connection has been ...
    (alt.os.linux)
  • Re: MultiHomed Workstation - Which NIC is being used?
    ... interfaces have routes out to the Internet, you will be using only one interface. ... Which interface gets used depends on how you've configured the stack. ... varying metrics, but that usually makes sense only if you're trying to make ... metric for faster connections then *all* your traffic will go out that connection. ...
    (microsoft.public.win2000.networking)
  • Re: Can the net connection binding order be changed via script or
    ... should be coming up lower than the wired connection at 100Mbs anyway. ... -Is there a way to view the automatically set metrics? ... >>Does anyone know if there is a way to use a script, WMI, netsh, GPO, etc to ... >>network and I want to avoid having docked laptops use the wireless connection ...
    (microsoft.public.windowsxp.network_web)
  • Re: MultiHomed Workstation - Which NIC is being used?
    ... > your interfaces have routes out to the Internet, ... Which interface gets used depends on how you've configured ... > configure varying metrics, but that usually makes sense only if you're ... > will go out that connection. ...
    (microsoft.public.win2000.networking)
  • load balancing, fail-over
    ... Nano-Howto to use more than one independent internet connection. ... The router is load balancing between 2 external independent Internet ... I have written a PERL script to check if a connection is down. ... the down interface with a metric of 19 and pinging 3 different public ...
    (comp.os.linux.networking)