Connect two networks, problem with DHCP

Start with the diagram.
asdf — kopia.png
I connected two routers (RB3011 and hAP ac2) with a cable and a port ether 5.
Both routers are in the default configuration.
Next on RB3011 add

/ip address add address=10.10.10.1/30 interface=ether5

and on hAP ac2 add

add address=10.10.10.2/30 interface=ether5

Then I set up routing
RB3011-

/ip route add dst-address=192.168.2.0/24 gateway=10.10.10.2

hAP ac2-

/ip route add dst-address=10.0.0.0/24 gateway=10.10.10.1

The connection works and Ping is both ways but i have problem with dhcp serwer.
PC2 and PC3 have dynamic adress ip from dhcp from network 10.0.0./24 and PC0 and PC1 have adress from 192.168.2.0/24
On rb3011 dhcp is from the windows serwer
On hap ac2 is from router dhcp.

How to block/prevent that it was only in its network.
Everything is mixed up
hap ac2 dhcp only for 192.168.2.0/24
windows server dhcp only for 10.0.0.0


Is this configuration ok?


Sorry for my English

Default ROS config is to have bridged all ether ports except for ether1 (which is configured as WAN port). And function of bridge is something like switch, meaning it’ll pass ether frames between any member port.

Now you’re trying to use ether5 as routed port. Which means you have to remove ether5 port from bridge on both devices. And this will also break broadcast domain span you created.
The rest of config should be fine.

Thank you for your response
Everything work but I have one problem.
I can’t watch video from video recorder (BCS) in network 192.168.2.0/24
I can ping, connect to device but the video doesn’t want to play in SmartPSS

I’m not familiar with the software in question, but it could be that it relies on broacasts/multicasts … which don’t work over routed links. You should check how SW operates … and possibly reconsider your network design.

What does “SW” mean?

SW = software … in this case combination of camera software and SmartPSS …

but it could be that it relies on broacasts/multicasts

It doesnt…

@Bili, can you successfully login to the DVR with smartPSS ?
If yes, then the problem cant be the network…
You use IP cameras ? If yes, are the properly configured ?

I noticed that once it works and the recorder is online once it doesn’t.
It’s an analogue dvr.
From network (10.0.0.0/24) DVR is available all the time.
I also noticed a new problem, I can’t ping Qnap with the IP address 192.168.2.200 from RB3011 (10.0.0.0/24) but the connection and shared folders work from the network (10.0.0.0/24).
When ether5 was in bridge, qnap would respond to ping.

I checked today and everything works except ping to qnap.

If shared folders work then 2.200 is accessible…

Everything works well.
Thank you for help.