Network Connection Priority question

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Our Embedded device has 2 NICs that connect to 2 different LANs.
Long-story short- an application on one LAN (lan1) is asking for the
IP address for the XPe device, and he is returning the wrong address
(lan2's). Through the GUI, I found the connection-priorities to be
wrong under "Network and Dial-up Connections "-- > "Advanced"
drop-down menu --- > "Advanced Settings..." -- > connections (i.e..
I changed to the correct priority and everything runs fine).

I need to either:

A) Have this set in TD (preferably) or at Run-time (Run-Once ??), but
the priority must be the same for every device.

Or

B) Through a script. We're currently running an install script that
sets the IP addresses and Maps a network drive, so this wouldn't be
that bad of a place to set priority either.


Are there any commands or utilities for doing this?

Thanks for your help.
 
Hi Jeff,

Not sure who does XPe ask for IP address? (DHCP?)
Also not sure about the complete question, but there are two command line tools you would like to check.
net and netsh

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do have an opinion on the effectiveness of Microsoft Windows Mobile and Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
IP addresses are both static, set through netsh.
I have both net and netsh in my image.

The first time I installed XPe on my device, the connection priority
was listed (correctly) as follows:
Local Area Connection
Local Area Connection 2

3 subsequent installs were the same (which is good). No problems.



On our 4th install with the same XPe image and the same exact device,
it listed the connection priority as follows:
Local Area Connection 2
Local Area Connection

This was giving us our application/ network problems.


From what I've read, this is a known issue with XP.

It seems XP arbitrarily assigns priority to NICs.

Is there a way to standardize XPe so that "Local Area Connection" is
the first priority?

Hope this is clearer.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top