Two Internet Connections
Butters
CA Icrontian
On my work computer, I have two network connections
1- NIC (Corporate Intranet) - T1 - 192.168.100.xxx
2- Wireless - DSL - 192.168.2.xxx
I want all my internet traffic to go through my Wireless connection (faster), and everything else through the Wired connection (congested and slow).
Is there a way for me to do this?
I'm thinking that I may have to setup a proxy...
1- NIC (Corporate Intranet) - T1 - 192.168.100.xxx
2- Wireless - DSL - 192.168.2.xxx
I want all my internet traffic to go through my Wireless connection (faster), and everything else through the Wired connection (congested and slow).
Is there a way for me to do this?
I'm thinking that I may have to setup a proxy...
0
Comments
Network Files (some mapped drives), Remote Desktop, things like that.. I'd use the IP address for networked PC's.
I just need internet traffic to go through the wireless adapter.
You may be able to do this with the net route command... be careful, you might want to read up on it. If you don't want to risk it or aren't experienced enough, just paste the results of a route print on the command line for us. Otherwise...
Find out what gateway the wireless connection has using ipconfig (I'm expecting this to be 192.168.2.1 so if it's NOT then change it in my example!)
I think what you'd want to do is this command:
route change 0.0.0.0 mask 0.0.0.0 192.168.2.1
And if the wired interface stops working when you do that, try then running:
route add 192.168.100.0 mask 255.255.255.0 192.168.100.1
(You need to verify the netmask and gateway for this command also)
If this doesn't make it work right, you might have to add the interface to the end of the command or something. Here are the pages I used to try to figure this out, for your reference...
http://www.computerhope.com/routehlp.htm
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/route.mspx
Worked like a charm! My external IP is the DSL connection, and I am able to see networked files, and our corporate intranet.
Thanks for your help.
I have a VPN connection at home, and it works exactly how I'd like this connection to work. I did a route print on that.. and I noticed that several routes were added when I was connected to the VPN..
so I added those routes to this connection.
route add 192.168.101.0 mask 255.255.255.0 192.168.100.{my ip}
route add 192.168.101.255 mask 255.255.255.255 192.168.100.{my ip}
and so on..
route add 192.168.1xx.0 mask 255.255.255.0 192.168.100.{my ip}
route add 192.168.1xx.255 mask 255.255.255.255 192.168.100.{my ip}
so by changing my default gateway and adding routes of each subnet, everything is working how I'd want it to.. thus far.. I may need to create a batch file since every now and then the routes change for some reason.
Thanks
route add 192.168.100.0 mask 255.255.252.0 192.168.100.1
I'm pretty sure you need a gateway to other subnets, but your own IP is best as the "gateway" to the 100 subnet, so also:
route add 192.168.100.0 mask 255.255.255.0 192.168.100.{your ip}
Note that you don't need to do because the one with .0 is covering 0-255 with the netmask--you're not defining a range of IPs directly but rather a binary mask to check whether a given IP falls within the desired range, i.e. 192.168.100.0/255.255.255.0 applies to 192.168.100.xxx, and 192.168.100.0/255.255.252.0 applies to 192.168.100-103.xxx. So a mask of 255.255.255.255 only applies to the single IP you put before it, and you already had the IP covered anyway. Well hopefully that explanation helps a little...
As for the routes not staying, do they change after a reboot or at any time? You might try adding -p (as in route -p add ...) to your route commands to make them persistent (permanent). If you want to change them later you have to use route delete or route change because they won't go away on their own.