static route multiple gateways
Posted on 2007-11-23
I want to setup a single workstation to connect to 2 disjointed networks. Let me explain why I need this. I am creating a seperate network for a department in my company that will have it's own internet connection, gateway 10.8.111.1 which will use a trading applicaiton that will use an internet service. Let reference this as network B. I need to connect one of the computers from another department to this network. The problem is I need this computer to also be connected to the main network, gateway 192.168.30.1 and I want the main network to provide internet for this computer. Let reference this as network A. I'll setup 2 network cards to provide access to both networks. I only want communication with the trading application, subnet 10.10.0.0 to use the 10.8.111.1 gateway from network B. Everything I've read so far says to only put in one default gateway (network A's gateway) and provide static routes to other network, network B. The problem with that is how will it use the router in network B for the trading application internet service? My question is with static routes will it know to use the router gateway in network B if communicating with subnet 10.10.0.0? If not is it possible with static routes to specify traffic to subnet 10.10.0.0 to use gateway B?