Route several subnets each via separate gateway

V

Varda Zklir

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.
 
R

Robert L [MVP - Networking]

It is better to have a router or windows server as router. XP is not designed to be a router.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
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.
 
V

Varda Zklir

It is better to have a router or windows server as router. XP is not designed to be a router.

Thank you for your reply.

So how I can setup that routes each LAN subnet to separate ISP in case
it will Windows Server (2003 Advanced) ?
If it possible show me in one-two examples.
 
R

Robert L [MVP - Networking]

This how to may help. It talks about VPN, but it is the same concept.

How to setup vpn on 2003 as routerHow to setup VPN and NAT on Windows Server 2003 as a router. Pre-requirement:. 1. Two network interface cards. 2. One static public IP on the outside NIC. ...
http://www.howtonetworking.com/VPN/2003vpn1.htm


Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
Varda Zklir said:
It is better to have a router or windows server as router. XP is not designed to be a router.

Thank you for your reply.

So how I can setup that routes each LAN subnet to separate ISP in case
it will Windows Server (2003 Advanced) ?
If it possible show me in one-two examples.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top