bill001g :
Lets take the simple case. I have a ethernet cable hooked to ISP 1 and I get address 192.168.1.99 with a gate of 192.168.1.1. On another ethernet interface I have a cable hooked to ISP2 and I get address 192.168.2.99 with a gate of 192.168.2.1
There are other ways even with a single ethernet but to avoid confusion we will stick with this.
So I want ISP1 to be my main connection and I want only some traffic to go to ISP2.
First do ROUTE PRINT. You should see 2 routes with 0.0.0.0. The PC will select one "best" on but we need to force it.
So you do ROUTE DELETE 0.0.0.0 mask 0.0.0.0 192.168.2.1
Now all traffic will go to ISP1 since it does not know how to get to ISP2.
Now the hard part.
You need to do NSLOOKUP wwww.site.com and find all the ip for the site you want to use ISP2. So lets say you find ip
100.64.55.75 and 100.72.99.127
You enter
ROUTE ADD 100.64.55.75 mask 255.255.255.255 192.168.2.1
ROUTE ADD 100.72.99.127 mask 255.255.255.255 192.168.2.1
So what I have done is said send those to IP to ISP2 router. All the rest still use the 0.0.0.0 route and go to ISP1 router.
thank you! so I can force teamspeak server to my main connection and other stuff will use my phone internet, that would be much easier than getting ips for every server I want to play and there will be some problems with Steam aswell I guess. Thank you a lot!
edit: everything works great, I made .bat and I run it as administrator and it works fine, like I wanted, but how can I restore my main internet route to 0.0.0.0 from 255.255.255.255 without replugging cable?
edit2: my .bat file:
ROUTE DELETE 0.0.0.0 mask 0.0.0.0 192.168.1.1
ROUTE ADD 92.61.46.247 mask 255.255.255.255 192.168.1.1
tried ROUTE DELETE 255.255.255.255 mask 0.0.0.0 192.168.1.1 , but can't get it working
edit3: nevermind, it was easy
ROUTE ADD 0.0.0.0 MASK 0.0.0.0 192.168.1.1
sorry for spamming, but when I connect both internets, I got two default connections, and my computer forces to my phone internet. How can I change priority for my main internet with .bat file, because I'll be too lazy use these ROUTE commands every time, since my phone internet gateway changes every time (I could simply add 255. route for phone internet, right?). If I can do this, then if I connect my phone internet nothing will change, if I use my first.bat, priority goes to my phone internet and my main connects only in TeamSpeak server, and if I do my second.bat, my main internet route goes back to 0.0.0.0 and I would need to get 255. route for my phone internet as well, am I right?