Bridged network and subnetting

Hi. I am newbie and have a big problem. The network is a long line in bridge mode.

gatway1 - sxt - sxt - rb951(gatway2) - sxt - sxt - switch - sxt - sxt - switch

The middle part of the network should be one network. Both ends the of the line the other network. I don’t know how the separate them and let both ends communicate via the middle part of the network.

I want to avoid using static ip addresses on the computers.

Route or vlan tag network.

eg:

192.168.0.1/24 first network -192.168.1.0/24 middle network - 192.168.2.0/24 last network.

Each end of l2, must have other end as gw/subnet.

0To not have static ip - Have a dhcp at midle (or where Your pc are Connected)

To show a 100% setup is difficult, put here since you dont tell where Your Connect, and or where Your gw, is, this setup, and what you want to recive from this setup not have a l2 network.