I think, with distance on ether1 set to 1 and distance on wlan1 set to 2, as long as ether1 is running, Mikrotik will route all traffic through ether1. this is what you want yes?
Yes, exactly. But this is not what the router does
With distance you are referring to the default-route-distance in IP > DHCP-Client, right?
you will see both route showing up in routing table and both can be dynamic / static, but the lower distanced is active and is shown as Black, while the higher distanced route is reachable but not active, and is shown as Blue.
It's true that both routes are created while only one is active but my problem is that both routes show "reachable wlan1":
/ip dhcp-client print detail
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; defconf
interface=ether1 add-default-route=yes
default-route-distance=1 use-peer-dns=yes use-peer-ntp=yes
dhcp-options=hostname,clientid status=bound address=192.168.144.170/24
gateway=192.168.144.254 dhcp-server=192.168.144.210
primary-dns=192.168.144.210 secondary-dns=8.8.4.4
expires-after=1w23h34m48s
1 interface=wlan24 add-default-route=yes default-route-distance=2
use-peer-dns=yes use-peer-ntp=yes dhcp-options=hostname,clientid
status=bound address=192.168.144.175/24 gateway=192.168.144.254
dhcp-server=192.168.144.210 primary-dns=192.168.144.210
secondary-dns=8.8.4.4 expires-after=1w23h59m9s
/ip route print detail
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 ADS dst-address=0.0.0.0/0 gateway=192.168.144.254
gateway-status=192.168.144.254 reachable via wlan24 distance=1
scope=30 target-scope=10 vrf-interface=ether1
1 DS dst-address=0.0.0.0/0 gateway=192.168.144.254
gateway-status=192.168.144.254 reachable via wlan24 distance=2
scope=30 target-scope=10 vrf-interface=wlan24
...
The traffic is routed via wlan2 - I can say this for sure as Interfaces show traffic on wlan2 and in my case, wlan2 speed is ~5 Mbps while ether1 is 100 Mbps. When deactivating wlan2 interface I reach again 100 Mbps.