need help in script(dhcp-client name set to route with %)

i need to add “%ether1” and “%ether2” on every gateway.. please help. thanks

eh??? :open_mouth:

my goal is to update gateway from dhcp-client to IP>Route with “%ether1”

Couldn’t you just use the “add-default-route” option? That would update the route whenever the DHCP client gets a new default gateway. Or are you talking about something else?

Same reply

I have a similar issue, hope somebody can help.

I have three WAN links with the DHCP client enabled on every link, I’m splitting the traffic from all my users between these WAN links using mangle rules and I have a route created for every routing mark in mangle specifying the gateway for each routing mark, the IP address assigned to each WAN link is changing every 3 or 4 days, What I need is an script to update the gateway on the routes for every routing mark once the IP address and the WAN gateway are changed.

I found this topics, but is not working for me
http://forum.mikrotik.com/t/dhcp-client-and-auto-gateway-change-script/35370/1


Thanks!!!