Question : How to configure default interface for internet ?

Hi

I'm wondering how to configure windows to use one of available internet connections as default ? Now i have two ethernet cards - one connected to network with NAT and second one connected to router with external IP address. Let's say that i would like to check if internet is availbale through NAT interface and i want to set up as a default ( i don't want to disable interface with external IP address ) ? How to configure it as default internet connection and be sure that f.x all http traffic will be prvided by NAT interface but ftp traffic will be forwarded through interface with external IP address.

Answer : How to configure default interface for internet ?

Use command route.
Example:
 route delete 0.0.0.0
 route add 0.0.0.0 MASK 0.0.0.0 gateway ip
Where gateway ip is ip address of nedeed interface.
So you can create 2 batch files for change route.
Random Solutions  
 
programming4us programming4us