4

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.

brainless
  • 141
  • 1
  • 6

3 Answers3

4

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.

3dinfluence
  • 12,449
  • 2
  • 28
  • 41
  • 2
    This is the right answer... but most soho routers offer some way to set static routes, even if not via the GUI. – Joris Jan 29 '11 at 20:50
  • 1
    I really don't understand the other answers. OP says that both LAN's are on the same building. Just connect them with a cable/fiber. – Saariko Sep 25 '12 at 06:50
-1

You need a VPN. I suggest openvpn. Its very easy to setup, compared to other VPN solutions. I would start with the simple static key method.

You would install a box with openvpn on both subnets, setup openvpn with a static key, then on your routers setup a static route to direct traffic to openvpn. Both LANs will need to be on different subnets.

Steven
  • 3,029
  • 20
  • 18
-1

The best solution if your routers support them is a site to site vpn connection. Then all the routing is taken care of for you when the connection is setup

Mike
  • 22,310
  • 7
  • 56
  • 79