I noticed a behavior difference between RouterOS 7.20.x and 7.21 and would like to know if it is intended.
Hardware: RB4011iGS+
Setup:
DHCP server on bridge1 (pool 192.168.100.0/24)
Router has static address 192.168.100.254/24 on bridge1
DHCP client enabled on the same interface (bridge1), add-default-route=no, use-peer-dns=no
7.20.8: DHCP client stays in "searching..." and never binds.
7.21: DHCP client binds immediately and gets an address from the router's own DHCP server (e.g. 192.168.100.253/24, gateway 192.168.100.254, which is the router itself). This happens on all my routers running 7.21 with the same configuration.
I could not find anything about this in the 7.21 changelog.
Questions:
Is this an intentional change, or a side effect of other DHCP server changes?
Is there any risk of a loop or conflict, for example if add-default-route=yes is used?
Screenshots attached (7.20.8 vs 7.21). Has anyone else seen this?
Please note that if the reason you enabled the DHCP client on the same interface where the DHCP server is running is to detect rogue DHCP servers on the same layer 2, then there is a much better suitable feature for that:
Thanks for the reply. There is no problem or issue on my side, I just wanted to confirm whether MikroTik really made this change on purpose, since the behavior is the same on all 7.21 and newer versions I have tested, and it was not in the changelog.
I use the DHCP client on a bridge interface for troubleshooting, for example to check if there is another DHCP server or broadcast from other devices on the network, or if there is a loop inside the LAN. That is why the change in behavior caught my attention.
I will also upgrade to a newer version as you suggested. Thanks!
Thanks for the tip, and yes, that is exactly why I enabled the DHCP client on that interface: to check whether there is a rogue DHCP server on the same layer 2. I will look into the DHCP alert feature, it sounds like the proper tool for this.
My main question is only about the behavior change. On 7.20.x the DHCP client on the same interface as the local DHCP server stays in "searching...", while on 7.21 and newer it binds to the router's own DHCP server on all the routers I have tested. Is this an intentional change by MikroTik in 7.21 and newer, or is it a bug or an unintended side effect? It was not mentioned in the changelog.
I just want to clarify: is this behavior the result of a system update from MikroTik, or is it simply a RouterOS bug? I’ve tested this on routers running OS version 7.21 and later, and they exhibit this behavior, whereas routers running versions prior to 7.21 function as usual—binding when a DHCP broadcast is received from another device.
It's from the massive changes MikroTik made to the DHCP code, including the DHCP Snooping part / Option 82 handling that MikroTik made starting with 7.21. It was already noticed back then, for example V7.21.1 [stable] is released! - #97 by gabrielb (and as you can see in my response to that post, the DHCP Alerts feature was already suggested as the proper method).
But no one have considered that a bug. I also don't consider that a bug if MikroTik cleanly implements the DHCP server and client parts as two independent functionalities, then it's natural that the client part works like all other DHCP clients and receives the lease from the server part when both are in the same L2 broadcast domain.