cAP ac as Access Point with external DHCP server

Hi.

I have searched for and read and watched many tutorials, but none address my issue.

I need a simple setup to have my cAP ac RouterBoard as a wireless Access Point (both 2.4/5GHz), which is connected (eth1) to my Ubiquiti EdgeRouter-X ethernet port, which should serve DHCP leases to the wireless clients as well as to the wired clientes connected to the ER-X ethernet ports.

I have tried many combinations, say connecting to LAN port on ER-X and disabling DHCP server, trying to configure DHCP Relay on the cAP, setting bridges and so forth, to no avail. It’s certainly my fault but I lack the knowledge to get this to work.

The desired setup is as follows:

    10.100.1.10           <IP here?>  10.100.1.44     10.100.1.1/24 (DHP server)
[client PC] -------Wi-Fi-------[cAP ac] eth1--------- eth4 [EdgeRouter-X] eth0 -------Internet
                                                           |
                                    10.100.1.20            |
                            [Wired PC 1] eth -------- eth2-|
                                                           |
                                    10.100.1.30            |
                            [Wired PC 2] eth -------- eth3-|

Any advice on how to configure the cAP ac (address pools, DHCP relay) and the DHCP server on wired (main) router would be greatly appreciated.

It must be your birthday, your wish has been granted…
See item Dhttps://forum.mikrotik.com/viewtopic.php?t=182373

You are my hero. This did the trick. Thanks!!

[Edit] Just for documenting, this solution by @pukkita, given HERE was just perfect and simple.