Networking two routers, static route

tzib

Distinguished
Mar 5, 2010
1
0
18,510
Hello,
I have two routers.
Router1(ZTE) is connected to my ISP via PPPoE and the Router2(TP-LINK) is connected to Router1's ethernet port.
Cable from ethernet port of Router1 is connected to WAN port of Router2.

Router1's config (LAN Side):
ip : 192.168.1.1
subnet : 255.255.255.0

Router2's config (WAN Side):
ip : 192.168.1.2
subnet : 255.255.255.0

Router2's config (LAN Side):
ip : 172.0.0.1
subnet : 255.255.0.0

wat i want to do is to ping pc's (with ip's : 172.0.0.2,172.0.0.3,etc) of Router2 from my pc connected to Router1 (using ip : 192.168.1.3)
i can ping from 172.0.0.x to 192.168.1.x but unable to ping from 192.168.1.x to 172.0.0.x

i dont want to use NAT's instead i want to make use of static routes.
tried adding static routes myself but failed.
searched alot on net but still not solution.

what should i do?
 
I assume you’re configured as follows:

[router #1](lan)<--wire-->(wan)[ router #2]

Any clients of router #2 are allowed access to clients of router #1. But any clients of router #1 are denied access to router #2 by its firewall. So that’s the first problem (unless you took care of that already, you didn’t mention it).

You will also need to add static routing to clients of router #1 in order for them to find the 172.0.0.x network since I presume those clients are already using router #1 as their default gateway (i.e., 192.168.1.1) for Internet access.

route add 172.0.0.0 255.255.255.0 192.168.1.2

NOTE: If router #1 supports static routing, you should be able to specify the routing there and avoid having to update individual clients of router #1.
 

renwoxing8

Reputable
Jan 6, 2016
1
0
4,510


Hi, tzib. I am now building a network using two routers just as what you do. I also want computers in different subnets can communicate with each other. I encountered with the same problem with you. Have you found a solution for this problem yet?
 
This is a very old ports but the short answer is you can't do it with a consumer router. Most do not even have static route ability but the larger issue is the NAT. It is the same reason someone from the internet can not access the ip addresses in your house.

Now if you had a actual router this would be trivial to make work.