If I understand correctly, you need three networks defined in your configuration. One for the machines on Router 1 (floor 1), one for the machines on Router 2 (floor 2), and one between the two routers.
For example:
- Machines on floor 1: network 192.168.1.0 mask 255.255.255.0 (router interface IP 192.168.1.1, machine IP 192.168.1.2 to 254 broadcast 192.168.1.255)
- Machines on floor 2: network 192.168.2.0 mask 255.255.255.0 (router interface IP 192.168.2.1, machine IP 192.168.2.2 to 254 broadcast 192.168.2.255)
- Between the two routers: network 192.168.3.0 mask 255.255.255.252 (router 1 interface IP 192.168.3.1, router 2 interface IP 192.168.3.2, broadcast 192.168.3.3)
Routing, of course, must be properly configured so that all machines see all other machines.
But I'm wondering why you are doing this for your setup. It's much easier to have hubs or switches to have all the machines on the same network, and perhaps only one router for net access.
Andargor