How can I connect (sharing all except Internet) two independent networks, each network w/ own Internet and IP addressing?

trennal

Honorable
Feb 14, 2014
4
0
10,510
Connection or Bridge of networks with different Internets and IP addressing. For sharing everything except Internet.


More details:
...................................LAN1--------------------//--------------------LAN2
Internet <>modem<>Router====LAN1+2 Router===Router<>Modem<>Internet
..........................192.168.20.10~~~~~~~~//~~~~~~~~192.168.1.1
.........................255.255.255.0~~~~~~~~//~~~~~~~~255.255.255.0
.........................DHCP enabled~~~~~~~~//~~~~~~~~DHCP enabled
..........................|__|__|__|__|~~~~~~~~//~~~~~~~~|__|__|__|__|
.......................client IP addresses~~~~~~//~~~~~~~client IP addresses
........................192.168.20.XXX~~~~~~~~//~~~~~~~~192.169.1.XXX

??
Physical connections using 3 routers?:
LAN1-LANport to LAN1+2-LANport
LAN2-LANport to LAN1+2-LANport

Route settings:
Create/Set LAN2 IP 192.168.20.11 on the LAN1+2 interface. This now let users on LAN2 send traffic to send traffic to LAN1 users.
Create Set LAN1 static route 192.168.1.0/24 is behind 192.168.20.11.

 
Solution
Without details its hard to say how exactly you can solve this.

You need a actual router. That is the main function of a router to connect various ip networks together. The key confusion is all those boxes you see sold in the store with the word "router" on them is mostly not true. Almost all so called "routers" are better described as gateways because all they can do is translate a single lan subnet to a single WAN ip.

There are limited number of consumer devices that do support real routing to a point or you load the third part firmware dd-wrt to get the function.
Without details its hard to say how exactly you can solve this.

You need a actual router. That is the main function of a router to connect various ip networks together. The key confusion is all those boxes you see sold in the store with the word "router" on them is mostly not true. Almost all so called "routers" are better described as gateways because all they can do is translate a single lan subnet to a single WAN ip.

There are limited number of consumer devices that do support real routing to a point or you load the third part firmware dd-wrt to get the function.
 
Solution

trennal

Honorable
Feb 14, 2014
4
0
10,510


I have obtained a router that I can update with OpenWRT. Do I connect each network to the router's LAN port and then setup the routing table? Or, is there another config approach?
 
You will need to make changes on both routers. on the openwrt one you need to define a second lan interface. Let say you do it on the location b router. You would put say ip 192.168.20.11 on the new interface and hook that lan port to the other routers lan port. This now let users on router b send traffic to send traffic to router a users. To get the traffic back you must put a route in router a that says 192.168.1.0/24 is behind 192.168.20.11.
 

TRENDING THREADS