Nat – how to connect 2 independent computer networks

internetlocal-area-networknat;networkingrouter

enter image description here

I have 2 independent networks that are connected to internet. Each systems in a network can connect to the internet through the corresponding router/NAT device. i wish to connect these two LANs. I am not a networks guy. please help me by suggesting a way to connect these LANs so that i could access the files on the other LAN too. I have illustrated the scenario in the above image. Thanks.

note: the two LANs are located at same place geographically. i.e, in same building at adjacent rooms.

Best Answer

Your note indicates that these LANs are located at the same location. If so this could just be a routing problem. With some NAT if both networks share the same subnet. But you'll likely need routers that are more capable than average consumer equipment or a layer3 managed switch that supports static routes if you don't need NAT.

Basically just need a static route in each router to the other routers subnet. This can be done over cat5e type cable if they two locations are close enough. For longer distances this would require either fiber or metro ethernet if that's available in your area. This will provide much better performance compared to a VPN solution and leave your Internet connection free to do other things.

Depending on your routers you could also use dynamic routing protocols to provide some WAN redundancy for egress traffic to the Internet at least. For example if LAN 1's Internet connection was down the traffic could be sent to LAN 2's router and use it's Internet connection and vice versa.

Related Topic