Connecting two private Lans

katyoshah

Reputable
Mar 21, 2014
1
0
4,510
Hello guys i am new here , i have two LANS in my company , each LAN has a router.

LAN1: 192.168.5.1(Router1 IP)
LAN2:192.168.3.1(Router2 IP)
Subnetmask: 255.255.255.0
Both Connected to the internet thru Router1


Router1 is connected to Router2 (LAN-WAN) Connection, i want the computers in both LANS to ping each other.i have internet on both working fine.



I saw a solution on the internet but i am not sure if it works ,they say i have to setup static IP on the Router2, here it goes:

Router1:
LAN IP:192.168.5.1
WAN IP: ISP
GATEWAY:192.168.5.1

Router2:
LAN IP:192.168.3.1
WAN IP:192.168.5.2
GATEWAY:192.168.5.1

Will a computer connected to Router2 ping a computer connect to router1 and vis-versa ?
I DONT WANT TO HAVE THE TWO NETWORKS ON THE SAME SUBNET , THANK YOU!



 
Solution
just disable dhcp on router2 and and give router2 ip address of same network as router1 for example if you use 192.168.5.1 on router1
give 192.168.5.100 to router2 then save and reboot. Before reboot plug Ethernet cable coming from router1 LAN interface in (router2's LAN port not in WAN port)
now u can ping every device because router2 will be acting as wireless access point.

silentplanner

Distinguished
Oct 28, 2013
581
0
19,160
just disable dhcp on router2 and and give router2 ip address of same network as router1 for example if you use 192.168.5.1 on router1
give 192.168.5.100 to router2 then save and reboot. Before reboot plug Ethernet cable coming from router1 LAN interface in (router2's LAN port not in WAN port)
now u can ping every device because router2 will be acting as wireless access point.
 
Solution
You will need a actual router. The things sold in most stores are routers are better described as gateways. They take a single WAN address and share it between a single lan subnet.

The issue I suspect you see is users in router 2 can ping router 1 ip but not the reverse. This is because all the users in router 2 are sharing a single IP address. This is the standard NAT issue and why people on the internet can not contact individual machine without port mapping but of course port mapping only allows a single machine to own a particular external port.

Your only choice is to get a real router that does not NAT the addresses. If you cabled it as you suggested you would still need to put a static route in router 1 saying 192.168.3.0/24 was behind 192.168.5.2. DD-WRT is your best bet to get these features without spending lots of money on commercial routers.