DHCP Relay configuration

Hello,
I am trying to configure DHCP Relay. I have RB4011 (DHCP Server) and cap ac (DHCP Relay). Right now I can get local IP address from RB4011 through cap ac, however I cannot get access to Internet from my devices, unless I set a masquerade rule on cap ac (masquerade rule on RB4011 is set and if I connect my device directly to RB4011, I get access to Internet without issues). But is it how it should be? Also, I cannot connect using WinBox and any other method to RB4011, when I am connected to cap ac, however I can get access to other devices connected to RB4011 directly. To configure RB4011 I have to connect to it directly. How to solve this?
RB4011.rsc (2.07 KB)
relay.rsc (1005 Bytes)

Export your config! both of the router and the access point so can somebody can help you.

It might be that you have not configured the bridge/ip addresses correctly between the main router and the ap.

http://forum.mikrotik.com/t/connecting-2nd-mikrotik-ap-via-ethernet-cable/149107/1

Config files attached.

Changing relay to switched network. Fixed IP and DHCP-client, both = lazy implementation (route and DNS will come with DHCP lease.)

Clean up RB4011.

Switch port setting, what for ??? Use either SWITCH or BRIDGE, not both.

No DHCP relay needed
.
Bridge MAIN and Ether10 will not route between each other as they use the same subnet. Maybe just add ether10 to bridge (and remove ether10 settings). Or use non-overlapping specific netmask (/25?) for 2 routed subnets, with IP address on MAIN and ether10 in their respective subnet. These addresses are the 2 gateways for the respective DHCP leases.

192.168.1.2 referring to “relay” AP is not a gateway (anymore) in the switched-relay2 setup.
relay2.rsc (821 Bytes)

Thank you. Everything is working fine now. However, I can’t understand, when DHCP Relay should be used.

DHCP relay is when the DHCP server itself is not reachable by the client, is on another (routed) network.
Klembord-2.jpg
Here DHCP server and clients are all on the same (bridged/switched) L2 network.

Thank you for your answer.