Hello everyone. Help with the script. There is a mikrotik configured for the operation of two Internet providers, using packet marking. The first provider gives a static address, the second via DHCP with changing the gateway and address. It is necessary that when changing the address to the dhcp client, the ip is registered in Mangle, and the gateway in the routing table. Thanks in advance!
DHCP client create automatically the route.
On mangle use WAN interface name than IP.
The IP change but the interface still the same.
I partially solved my question, but there is one more problem for me, if you change the ip address with the gateway, one of the interfaces, or rather ether1, substitutes the values from ip dhcp-clients (gataway). The link is attached below
https://dropmefiles.com/BUgI2