Route several subnets each via separate gateway

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello gentlemen!

I've several subnets and 2 gateways to DSL links:

+-- 1st Office: 192.168.1.0/2
| +--- 2nd Office: 192.168.2.0/24
| |
2 NICs
WinXP: 192.168.0.1
1 NIC
|
cable between buildings
|
NIC
WinXP:192.168.0.2
2 NICs
| |
| +--- DSL: 10.0.0.1 --> 10.0.0.2 ISP
+-- DSL: 172.16.0.1 --> 172.16.0.2 ISP


So I'm pointed on 192.168.0.2 machine subnets back:

route add 192.168.1.0 mask 255.255.255.0 192.168.0.1
route add 192.168.2.0 mask 255.255.255.0 192.168.0.1

And both subnets goes to Internet sucessfully when I have single
default gateway like

route add 0.0.0.0 mask 0.0.0.0 10.0.0.1
OR
route add 0.0.0.0 mask 0.0.0.0 172.16.0.1

How can I pass out to the Internet each LAN subnet not trough single
common gateway but trough it's own separate gateway at the same time
like:

192.168.1.0/24 ---> 10.0.0.1 and 192.168.1.0/24 ---> 172.16.0.1

???

Thank you.

.



Relevant Pages

  • Re: "Routing and Remote Access" in Windows Server 2003
    ... Set the default gateway of NIC B to NIC A. ... > say that I have to make sure no filtering blocks internet address, ... > Server computer. ... > In "Routing and Remote Access" I have added both NICS. ...
    (microsoft.public.win2000.ras_routing)
  • Workgroup that spans more than one subnet in Samba
    ... I want a workgroup that spands two IP subnets. ... eth0:192.168.0.1 and gateway of the 192.168.0.0/24 ... The Gateway is a Fedora Core 3 box where I have Samba ... running with this configuration: ...
    (comp.os.linux.networking)
  • Re: LAN with WLAN . . .
    ... but leave the default gateway setting on the LAN NIC blank. ... When you specify a default gateway on a NIC it sets up a default route ... If you specify a default gateway on two NICs you get ...
    (microsoft.public.windows.server.networking)
  • SSL on multiple sites in a virtually hosted WinServer 2003
    ... my ISP and its address is the public gateway. ... I am hosting several websites on the server. ... This setup works fine for only one SSL enabled site. ... one of the nics but it gets confused as to which gateway to send the packets ...
    (microsoft.public.windows.server.networking)
  • Re: W2K3 Server with 2 NICs
    ... and so it is in th same subnet as Intranet nic. ... connecting it from other subnets. ... gateway address in Intranet nic but it didn't work and server warned about ...
    (microsoft.public.windows.server.networking)