Need help with routing between two subnets with two routers

Nocturnal

Gawd
Joined
Jul 20, 2006
Messages
805
I would like to know if it's possible to connect two subnets with two routers. The first router is a WRT54GL flashed to DD-WRT v24-sp1 (07-27-08), and the other is a Netgear WNDR3700v2 running 1.0.0.8 which is Open-WRT Kamikaze.

I found many forum posts and tried to follow them but could not get the secondary router and clients to access the internet.

So the setup goes like this:

ISP modem > WAN port of WNDR3700 (192.168.1.1) > LAN TO WAN on the WRT54GL (192.168.2.1)

And then there are clients behind the WNDR3700 as well as behind the WRT54GL.

So from following a bunch of things I found online, I went into the WRT54GL (192.168.2.1) and setup the WAN settings to be static and inputted the following:

WAN on WRT54GL:
IP: 192.168.1.2
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1
Static DNS 1-3: 0.0.0.0

Then in the "Network Setup" portion of the WRT54GL (192.168.2.1):

Local IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
Gateway: 192.168.2.1
Local DNS: 192.168.2.1

From there I found severa posts that said I needed to then go into the Netgear WNDR3700v2 and create a static route which entailed the following settings:
Router Name: Router2
Active: Yes (check box)
Destination IP Address: 192.168.2.0
IP Subnet Mask: 255.255.255.0
Gateway IP Address: 192.168.1.2
Metric: 2

Upon doing this I went ahead and reset both routers by unplugging the power and letting them power cycle.

At this point and time I can now ping between the two subnets without any problems. However, the 192.168.2.1 (WRT54GL) clients cannot get to the internet.

The only other weird thing is that if I type in the WAN setup of the WRT54GL DNS: 192.168.1.1 I can then tracert from the WRT54GL to the WNDR3700 but after the it tries to leave the WNDR3700 it just dies as though it can't figure out how to route it past the WNDR3700.

My entire goal is to subnet the network so that I can have several VM running Server 2008 R2 which will be used for lab purposes and what the Server 2008 needs to simulate is it doing complete DHCP and DNS services for any and all clients that will be connecting to those VMs.

Is it even possible to route traffic both ways between two subnets with two routers running DD-WRT or Open-WRT?
 
I think you are overthinking this. You shouldn't need two routers. Just setup VLANs on one router and create your separation that way.

If you stick with the two router method you shouldn't need a static route since your WRT54GL is NATing. The 192.168.2.1 subnet is using 192.168.1.2 as its public IP.
 
Well I found a few places that recommended changing the WRT54GL under Advanced Settings to change the WRT54GL from gateway to router. So it had its NAT turned off so it could send things to the WNDR3700. The WRT54GL was the internal router so to speak behind the WNDR3700.
 
your wgrt needs to have a gateway of 192.168.1.2 atm your just pointing the router to look at itself for a way out.
 
your wgrt needs to have a gateway of 192.168.1.2 atm your just pointing the router to look at itself for a way out.

Are you talking about the WAN gateway IP or the LAN gateway IP? The LAN is already set to that but the WAN IP was set to 192.168.1.1.
 
your lan gateway needs to be pointed to the wan cause the wan is the way out.

Then in the "Network Setup" portion of the WRT54GL (192.168.2.1):

Local IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
Gateway: 192.168.2.1 (this needs to be your WAN on that router.192.168.1.2) The computer attached to this router will have a gateway of 192.168.2.1 when the router receives the data it will then need to forward it out the wan.
Local DNS: 192.168.2.1 (im also unsure why you have the router trying to do DNS as it doesnt not have any stored addresses.)

**also these are not subnets of each other. The current way you have it setup with the default mask 192.168.1.0/24 is a completely different network then 192.168.2.0/24
 
Last edited:
Back
Top