M
martinarcher
Hello All!
I manage a Windows XP image with a custom shell that configures IP addresses
(two local area connections). It parses the output from ipconfig and comares
the output to a config file. If the address do not match the config file, it
changes them using netsh commands. It has works fine for years, but I
recently released a new image and the ipconfig command somehow has reversed
the order that the adapters are displayed therefore reversing the way the two
IP addresses are mapped to the ports on the machine....
ipconfig used to show the adpaters in "reverse order"....
Local Area Connection 5
Local Area Connection 4
The new image orders them in the opposite order....
Local Area Connection 4
Local Area Connection 5
Any idea why ipconfig would change the order the adapters are displayed?
I compared the following registry settings between the two images and they
look OK. Nothing is flipped in the order of the adapters as they are listed
in the registry....
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip]
The only thing networking wise that has changed between the images was the
removal of NetBios from each of the adapters. I performed the NetBios changes
to the older image with no luck. The IP adapters did not switch.
I guess my question is....what determines the order that ipconfig shows the
Local Area Connections? Is there a way to control it so it is always
displayed in numerical adpter order? (ie Local Area Connection 2,3,4,5....)
Thanks in advance!
I manage a Windows XP image with a custom shell that configures IP addresses
(two local area connections). It parses the output from ipconfig and comares
the output to a config file. If the address do not match the config file, it
changes them using netsh commands. It has works fine for years, but I
recently released a new image and the ipconfig command somehow has reversed
the order that the adapters are displayed therefore reversing the way the two
IP addresses are mapped to the ports on the machine....
ipconfig used to show the adpaters in "reverse order"....
Local Area Connection 5
Local Area Connection 4
The new image orders them in the opposite order....
Local Area Connection 4
Local Area Connection 5
Any idea why ipconfig would change the order the adapters are displayed?
I compared the following registry settings between the two images and they
look OK. Nothing is flipped in the order of the adapters as they are listed
in the registry....
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip]
The only thing networking wise that has changed between the images was the
removal of NetBios from each of the adapters. I performed the NetBios changes
to the older image with no luck. The IP adapters did not switch.
I guess my question is....what determines the order that ipconfig shows the
Local Area Connections? Is there a way to control it so it is always
displayed in numerical adpter order? (ie Local Area Connection 2,3,4,5....)
Thanks in advance!