Solved

windows static route

Posted on 2013-05-27
6
333 Views
Last Modified: 2013-06-12
I have two networks and two LAN cards installed on my PC, i have static routes for specific networks on my PC(windows). my ping is working fine for all networks.
my problem is i have some software exe file when i run exe it will not run, i think it confuse to take right gateway.
i want to add some static routes for applications specific too.

thanks,
0
Comment
Question by:nainasipra
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:MMe12
ID: 39198652
You should only configure one default gateway on one of the NICs (the one which connects your PC to the internet).
For static routes use the "route add" command in a command prompt window (use "route add /?" for help). To make such static routes permanent (surviving reboots), you have to add the "/p" option to each "route add" command. To check existing routes, use "route print" command.
0
 
LVL 11

Expert Comment

by:marek1712
ID: 39199402
You can't add application-specific routes. Your only (I think) option is to lower the metric for the preferred networks. Check the help of the route add command for syntax
0
 

Author Comment

by:nainasipra
ID: 39199418
how the application will now that its server/gateway on which LAN card. is there anyway to do this?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 11

Expert Comment

by:marek1712
ID: 39199435
It's Windows' role to guide layer 7 transmission through the proper route.
As I've said - either change the metric or rearrange the interfaces' priorities in the ncpa.cpl.
BTW - are these routes correct? Can you post the routing table?
0
 

Author Comment

by:nainasipra
ID: 39199484
i want to run only one application with one LAN card and rest of all applications including internet with second LAN card.
if i will change priority of 1st LAN card high then all applications and internet will effect or not?
0
 
LVL 11

Accepted Solution

by:
marek1712 earned 500 total points
ID: 39199504
Probably yes.
Please post the routing table - it'll help diagnose the problem.
BTW - what OS do you use? You may try ForceIPBind - but beware - it modifies EXEs.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now