You need a script that takes the newly assigned gateway in IP DHCP client and put it physically in your routing rules.g
an easy way is to put a comment in each applicable route could be comment=FIXME
HEre is another one found used in IP DHCP client script area…
local bound [/ip dhcp-client get [find interface=“ether1ext”] status];
:local leaseIP [/ip dhcp-client get [find interface=“ether1ext”] address];
:if ($bound=“bound”) do={
:if ($leaseIP != $currentIPext) do={
:put “ip address $currentIPext changed to $leaseIP”;
/ip firewall address-list set [/ip firewall address-list find where comment=“extIP-MikroTik”] address=$“leaseIP” disabled=no
:set currentIPext $leaseIP;
}
} else={
/ip firewall address-list set [/ip firewall address-list find where comment=“extIP-MikroTik”] disabled=yes
}
I’d better stay away Mangle setups since I’m not good at deal with it.
Anyway, as for scripts in dhcp clients, I don’t think I perfectly understand what to do first.
Do I need to delete my recursive setup above and put everything in the dhcp client as a script?