Posted: Sun Apr 25, 2010 16:24 Post subject: Making the router accept connections from a different subnet
I have an Asus router with dd-wrt firmware running on gateway mode (lets call it Router1) and my setup is like this:
WAN port is connected and pppoe connection is up.
LAN1 has the ip address of 192.168.10.1/255.255.255.0
now i have another router(Router2) with the ip of 192.168.10.2 connected to LAN1, this router(Router2) is also connected to 3 other networks and its perfectly capable of routing the traffics between them. the networks are : 192.168.0.0/255.255.255.0, 192.168.4.0/255.255.255.0 , 192.168.5.0/255.255.255.0 . now routing between them works perfectly. what i want to do is make the Router1 to accept the connections from these networks which have been routed by Router2. and i don't want to use NAT. i want those networks could access to the WAN with their real ips.
What I have tried so far:
1- setting the Router1 ip to 192.168.10.1/255.255.0.0 to include all those other subnets. Result: Failed. maybe because the subnet is not match with other networks
2- setting the gateway in "Router IP" in Router1 to 192.168.10.2 . Result: Failed. this gateway was not even showed up in the routing table. maybe because i already have a gateway (pppoe connection)
3- adding a static routes with destination matching other networks (with and without gateway) . result: Failed
(The firewall was off for all tests)
I would really appropriate if someone could help me out.
You cannot use local IP addresses 192.168.x.x across the internet, you need a real IP address, so I don't see how you can avoid nat on the second router with the pppoe connection.
I do not intend to not use nat in Router1 . ofc i need nat to be able to access to the internet, i just dont want to use nat in Router2 to be able to connect to Router1. Thank you for your response. right now seems i messed up my connection to the router with wrong vlan settings . Ill try that tomorrow and get back to you.