While doing some “crazy” experiments on a hap lite running 6.49.17 I happened to find a “strange” thing related to the /ip dhcp-relay.
I tried adding a dhcp relay:
/ip dhcp-relay
add dhcp-server=192.168.1.151 interface=bridge1 name=relay1
ok.
The I tried adding a second one, and (correctly) it wasn’t possible as a relay was already assigned to bridge1.
So I disabled the first one in Winbox (x button) and proceeded to add a second one.
Now, if I do a
/ip dhcp-relay export
I get:
/ip dhcp-relay
add dhcp-server=192.168.1.151 interface=bridge1 name=relay1
add dhcp-server=192.168.1.1 interface=bridge1 name=relay2
The result is the same whether:
- first one is disabled and the second is enabled
- first one is enabled and the second is disabled
- both are disabled
I would have expected that in the export there was a way to distinguish between enabled and disabled in a “normal” export.
With
/ip dhcp-relay export verbose
the “disabled=yes” appears alright.
I presume that since the whole /ip dhcp-relay stuff seems to be not very commonly used it hasn’t been noticed till now.
Very likely if you try to import (or copy/paste) the settings from an export it will give an error on the second relay, but if you have only one relay configured but disabled, it will likely be imported as enabled.