Mikrotik has a discussion of Policy Routing here:
https://help.mikrotik.com/docs/spaces/R ... cy+Routing
Essentially you likely need some config like this:
# add new/2nd routing table
/routing/table/add name=ztoffice fib
# route new table via remote ZT router
/ip/route/add gateway=10.172.17.21 routing-table=ztoffice check-gateway=ping
# route rule to send VLAN5 to Cudy ZT
/routing/rule/add interface=vlan5 action=lookup table=ztoffice
Few notes:
- Above is example, not saying that be the exact commands
- You may not need the top ("0") src-nat rule... if you add "static routes" on the CudyRouter so it knows to send 192.168.88.0/24 -> 10.172.17.11 & /ip/route/add dst-address=192.168.10.0/24 gateway=10.172.17.21 on Mikrotik, you can avoid the NAT translation since both sides will know how to route between 192.168.88.0 and 192.168.10.0/24
- Or, alternatively,
ZeroTier controller (generally, my.
zerotier.com) lets you set routes too. So instead of above you can use
ZeroTier to define a routes as show above. I believe the Cudy will add those route automatically, but you'd have to check its settings. This is bit more complex since you might mess up the Cudy, depending on the default route distance its use for
ZeroTier routers. Thus, unless familiar with ZT and specifics on how it works on Cudy routers, I'd just use "Static Router" (which both Mikrotik and Cudy allow)
- You don't mention a IP address/subnet for "VLAN5"... likely you want to also set up routes for that & use the src-address=x.x.x.x/24 instead of interface=vlan5 in the /routing/rule. And/or you may need to do more to configure VLAN5 for use