Advancing Routing (Multiple Subnets)

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
zeitgeist
DD-WRT Novice


Joined: 02 Mar 2009
Posts: 5

PostPosted: Mon Apr 30, 2012 7:40    Post subject: Advancing Routing (Multiple Subnets) Reply with quote
Apologies in advance for the long post...

I have a multi-subnet advanced routing question that I could not find documented elsewhere and was hoping someone could help.

While I have read the documentation for linking subnets through static routing -- these directions are not actually working for my scenario.

http://www.dd-wrt.com/wiki/index.php/Linking_Subnets_with_Static_Routes

My situation:

- I have two DD-WRT routers (LAN: 10.0.0.0/255.255.255.0).

- The first router (10.0.0.1) is in my living room and is the main router (e.g. default gateway for all nodes, connected to WAN, DHCP server).

- The second router (10.0.0.2) is in my office and is operating as a Client Bridge. The second router has several physical computers connected to it. On one of those machines, I run approximately 10 virtual machines and 2 virtual networks (a secure virtual network 10.10.10.0/255.255.255.0 and a DMZ 10.20.20.0/255.255.255.0). These virtual networks can be accessed through a virtual gateway (10.0.0.120).

I can access the machines on the virtual network from the second router AND from any physical nodes directly connected to the second node (if I manually set a route for 10.10.10.0/255.255.255.0 through 10.0.0.120), so I have no reason to believe that my virtual gateway is causing problems.

My problem is that I cannot connect to the virtual nodes from the first/main router. I've tried several different options for adding routers:

On the first router, I've tried specifying that all traffic destined to 10.10.10.0/255.255.255.0 and 10.20.20.0/255.255.255.0 should go through 10.0.0.120. When that didn't work, I tried specifying that traffic to those two networks should go through 10.0.0.2.

On the second router, my iptables FORWARD table does have ACCEPT anywhere-anywhere configured. While I don't think static routes on this router are necessary, I've tried it with and without.

In summary, I've tried it with the 4 permutations:

Router1: static route to router2 for virtual networks.
Router1: static route to virtual networks through virtual gateway.
Router2: no static routes.
Router2: static route to virtual network through virtual gateway.

Nothing works.

If anyone has any suggestions, feel free to let me know. I've been banging my head against this all weekend and I'm coming up empty.


I know the configuration is a little wonky, but it's for my lab. I do a lot of testing with virtual machines and I need to be able to test between multiple subnets. I would prefer to have my virtual gateway to control access to those subnets (not a physical router).


Last edited by zeitgeist on Mon Apr 30, 2012 7:49; edited 1 time in total
Sponsor
zeitgeist
DD-WRT Novice


Joined: 02 Mar 2009
Posts: 5

PostPosted: Mon Apr 30, 2012 7:46    Post subject: Reply with quote
A few other notes...

- I can connect from the virtual network to everywhere else (main router, internet, etc.).

- I can connect to the virtual network from the second router.

- I can connect to the virtual network from nodes connected to the second router IF I set a static router on the physical nodes.

My problem is that I don't want to have to set static routes on all of my physical nodes / virtual machines. If I can get my main router to communicate with my virtual networks, then everything should be seamless (since the main router is the default gateway for everything).

I have watched everything via IPTraf and it looks like the connection attempts from the main router are making to to the second router, but are not making it to the virtual gateway.

Again, any help or suggestions are appreciated.

Thanks.
zeitgeist
DD-WRT Novice


Joined: 02 Mar 2009
Posts: 5

PostPosted: Tue May 01, 2012 7:45    Post subject: Reply with quote
[img][/img]
basl
DD-WRT Novice


Joined: 16 Sep 2009
Posts: 5

PostPosted: Tue May 01, 2012 20:59    Post subject: Reply with quote
There might be something wrong with the way you've set up your wireless bridge. That's the only thing I can think of.

Possible you can reconfigure your wireless bridge with the following documentation.

http://www.dd-wrt.com/wiki/index.php/Wireless_Bridge
http://www.dd-wrt.com/wiki/index.php/Image:Standard_bridge_large.jpg

Edit:
You can also use WDS to link both wireless routers with eachother. This might be the more proper method.

http://www.dd-wrt.com/wiki/index.php/WDS_Linked_router_network
http://en.wikipedia.org/wiki/Wireless_distribution_system
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum