I have a LAN in the following configuration:
- 192.168.1.1: Modem
- 192.168.1.2: Router
- 192.168.1.3 and on: Computers
Router 192.168.1.2 acts as the gateway of the following subnet:
- 192.168.0.1: Router
- 192.168.0.2 and on: Computers
Is there a way to allow computers in the 192.168.1.* network to access computers in the 192.168.0.* network (including being able initiate a connection, not just respond to requests) without merging the subnet into the main network?
Best Answer
Yes, as long as the routers offer the necessary configuration options. (Surprisingly many devices calling themselves "routers" don't let you add any routes!)
When your devices on the outer subnet send packets to another network, they first go through their "default gateway", and it's that router's task to route them to the correct next router.
Assuming that 192.168.1.1 is your first subnet's default gateway, it needs a static route towards the 2nd subnet:
If the 192.168.1.2 router has a firewall, it must be configured to allow connections from 192.168.1.0/24 (or even disabled outright).
If the 192.168.1.2 router has NAT enabled, it should be disabled... but it'll probably work either way, as long as the firewall in step 2 allows.