Access 2 routers on different IP addresses from each other.

Prince Chandela

Reputable
Apr 8, 2014
104
0
4,680
Hi everyone,
I have 2 routers, but I cannot access them from each other.
First Router is on IP 192.168.1.1
The second router is on IP 192.168.2.1

I cannot access the second router from first one,
but I can access the first router from the second one
 
Sounds like you are running router behind router configuration. This is the standard NAT issue because the second router thinks traffic coming in from the first is internet. You can try some port forwarding or maybe DMZ but it is limited in what you can do. To accomplish this you would need actual "routers". The devices you buy from the consumer electronic store are better called gateways because they do not really allow you to freely communicate between 2 IP ranges without using NAT.
 

Prince Chandela

Reputable
Apr 8, 2014
104
0
4,680


Hi, thanks for your reply
I have this router TP-Link Wr841n Running custom firmware DD-WRT (This one is my second router)

Link for the router: http://www.amazon.in/TP-LINK-TL-WR841N-300Mbps-Wireless-Router/dp/B001FWYGJS
My first Modem/Router is the one provided by my ISP.

The problem is I cannot access my devices connected to secondary router from my primary router.
 
Now if both routers had dd-wrt on them it would be sorta simple. A pc on the first router sends traffic for network outside of 192.168.1.x to 192.168.1.1 Since that router does not know that 192.168.2.x is behind router 2 or even how to get to router 2 it will send it to the internet. If the 192.168.1.1 device was dd-wrt you could put in routes to tell it where to send the other traffic.

The only option you have is to put the routes in the PC telling it to send 192.168.2.0/24 to say 192.168.1.250 (assuming that is the wan address of the dd-wrt router). You would then in the dd-wrt router disable the NAT function.

I guess more the question is why you would ever do this in a home network anyway. If you need another wireless device just run the second router as a AP and it solve the network issues.
 

Prince Chandela

Reputable
Apr 8, 2014
104
0
4,680


Sorry but I'm kind of noob but what I understood is you are trying to say that I should change my IP for secondary router to 192.168.1.255 and route traffic from my PC (which is connected to primary router/modem) to 192.168.2.0
How do I do that?
My primary router/modem doesn't support DD-WRT as it works as DSL modem.

P.S.
I read somewhere changing subnet mask can help me to access both routers from each other at different IPs
I am using wireless client mode in DD-WRT so no physical wire is attached to the second router, besides power adaptor