"Dan said:
If I have a few gateways (NAT servers) in my network, how can I set
"app1.exe" to use Gateway 1, "app2.exe" using Gateway2, etc ? How does
"netsh" help?
Thanks..
I'm sorry, but it isn't possible to control which gateway to use based
on the application.
Windows decides which gateway to used based on:
1. Entries in the TCP/IP route table, and:
2. The destination IP address being accessed.
When more than one gateway can reach the destination, Windows uses the
gateway that has the lowest metric value assigned to its corresponding
network connection. You can manually assign a metric to a network
connection:
1. Open the Network Connections folder.
2. Right click the desired connection.
3. Click Properties | Internet Protocol (TCP/IP).
4. Click Properties | Advanced.
5. Un-check "Automatic metric".
6. Enter a number between 1 and 9999 for the "Interface metric".
If you know the IP address that an app accesses, you can manually add
an entry to the route table specifying which gateway to use for that
address. For instance, an E-mail program accesses your POP3 and SMTP
servers, and you can find their IP addresses.
I think that you can use "netsh" to create route table entries, but I
don't know how. I use the "route add" command. For information on
it, type "route add /?" in a command prompt window.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)
Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.
Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com