RIP with static route failover

Hi,

I’m running a router configuration where I’ve got routes for a same networks learned via RIP and also I’ve got static routes towards the same networks installed with higher administrative value.

This with the aim to route traffic towards a specific network through information learned by RIP and revert to static routes when RIP learned routes time out e.g. in case of a link problem.

Although in principle this is a simple configuration the router always is displaying static routes in the routing table and ignoring the same routes learned by RIP although they are of lower admin value.

As an example below is the config for a specific network configured via static routing, which is always displayed in the routing table although the same is learned via RIP.

/ip route
add check-gateway=ping comment="LAN A" disabled=no distance=200 dst-address=10.10.40.4/30 \
    gateway=172.17.4.4 scope=20 target-scope=10

The same route learned via RIP is displayed only in case I disable the static route as in the example below.

ip route print detail

17 ADr  dst-address=10.10.40.4/30 gateway=192.168.222.34 gateway-status=192.168.222.34 reachable via  gre-tunnel-1>
        distance=120 scope=20 target-scope=10 route-tag=0 

18 X S  ;;; LAN A
        dst-address=10.10.40.4/30 gateway=172.17.4.4 gateway-status=172.17.4.4 inactive check-gateway=ping distance=200 
        scope=20 target-scope=10

Does anyone know if this is a normal behavior or have faced issues like this. Thanks for the feedback.