You'd use a DHCP client script that uses the $"gateway-address" variable to set the [recursive] static routes. And set the default-route distance to higher number or just set add-default-route=no in the /ip/dhcp-client.
2 Likes