A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Networking with Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing)

Influence automatic interface metrics assignment



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old April 16th 09, 01:30 AM posted to microsoft.public.windows.vista.networking_sharing
Benjamin Kalytta
external usenet poster
 
Posts: 5
Default Influence automatic interface metrics assignment

Hello everyone,

is there a way to influence the automatic metrics algorithm (interfaces
and per IP) in some way? Influence in the sense of manipulate.

This problem also covers following posts:

"multiple NICs; automatic metrics"
"Two NICs with identical gateway metric"

Very often there are several default routes but with different metrics.
In most cases automatic metrics algorithm works fine, but there should
be a better way to switch the "Default Gateway" other than setting
manual metrics for each belonging Adapter (and IP).

There SEEMS TO BE a promising way to control automatic metrics
assignment. There is a control panel dialog:

"Control Panel - Network Connections"

If you click ALT key on your keyboard here, and then selects menu
"Advacned - Advanced Settings..." a dialog is opened where you can
change the order of Connections in the "Adapter and Bindings" tab.

No one knows the purpose of changing the order here, but I expected to
influence the automatic metrics assignment which would make sense. But
changing this order will NOT change any metrics. Is this a bug in
Windows Vista or does this order have another purpose?

Is there a way to change this automatic metrics assignment in some way?
Are there some information (released by Microsoft) that shows the
algorithm for automatic metrics assignment?

I need this information because I'm currently developing a small Windows
tool to simplify the "Default Gateway" selection. My current tool still
lacks of some features and don't work as expected.

With Kind Regards,
Benjamin Kalytta
  #2 (permalink)  
Old April 16th 09, 01:32 AM posted to microsoft.public.windows.vista.networking_sharing
Benjamin Kalytta
external usenet poster
 
Posts: 5
Default Influence automatic interface metrics assignment

Some more information about the API:

I found out, that there is a IP Helper API to "obtains an adapter order
map that indicates priority for interfaces on the local computer."

It is "GetAdapterOrderMap". But what I'm miss is a corresponding
"SetAdapterOrderMap".

Maybe there is also a way to use INetCfg Interface in some way?
  #3 (permalink)  
Old April 16th 09, 07:38 AM posted to microsoft.public.windows.vista.networking_sharing
Noel Paton[_2_]
external usenet poster
 
Posts: 100
Default Influence automatic interface metrics assignment

On Thu, 16 Apr 2009 03:32:48 +0200, Benjamin Kalytta
wrote:

Some more information about the API:

I found out, that there is a IP Helper API to "obtains an adapter order
map that indicates priority for interfaces on the local computer."

It is "GetAdapterOrderMap". But what I'm miss is a corresponding
"SetAdapterOrderMap".

Maybe there is also a way to use INetCfg Interface in some way?

http://msdn.microsoft.com/en-us/libr...64(VS.85).aspx
might help (link may break!)
--
Noel Paton
www.crashfixpc.co.uk

Nil Carborundum Illegitemi
  #4 (permalink)  
Old April 16th 09, 10:04 AM posted to microsoft.public.windows.vista.networking_sharing
Benjamin Kalytta
external usenet poster
 
Posts: 5
Default Influence automatic interface metrics assignment


http://msdn.microsoft.com/en-us/libr...64(VS.85).aspx
might help (link may break!)


No sorry, it is only the return parameter of the function
"GetAdapterOrderMap". But I didn't find a way to change this order.
  #5 (permalink)  
Old April 16th 09, 10:15 AM posted to microsoft.public.windows.vista.networking_sharing
Noel Paton[_2_]
external usenet poster
 
Posts: 100
Default Influence automatic interface metrics assignment

On Thu, 16 Apr 2009 12:04:53 +0200, Benjamin Kalytta
wrote:


http://msdn.microsoft.com/en-us/libr...64(VS.85).aspx
might help (link may break!)


No sorry, it is only the return parameter of the function
"GetAdapterOrderMap". But I didn't find a way to change this order.

http://msdn.microsoft.com/en-us/libr...14(VS.85).aspx

??
--
Noel Paton
www.crashfixpc.co.uk

Nil Carborundum Illegitemi
  #6 (permalink)  
Old April 16th 09, 01:08 PM posted to microsoft.public.windows.vista.networking_sharing
Benjamin Kalytta
external usenet poster
 
Posts: 5
Default Influence automatic interface metrics assignment

http://msdn.microsoft.com/en-us/libr...14(VS.85).aspx

??


"GetAdaptersInfo" will only GET information about a specific adapter,
nothing more. However I want to change the adapter order map.
  #7 (permalink)  
Old April 19th 09, 10:43 AM posted to microsoft.public.windows.vista.networking_sharing
Benjamin Kalytta
external usenet poster
 
Posts: 5
Default Influence automatic interface metrics assignment

Does any one have an idea how to change the order of this Adapters and
Bindings connections programatically?

Benjamin Kalytta
 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.