How to "disable" connected routes

Hello,

I am a beginner in mikrotik configurations and my english isn’t very well…
I would know how to disable connected routes when one interface isn’t running; indeed, I have two routes for the network LAN, one directly connected to my first mikrotik and one via my second mikrotik but the connected route is always up even if I unplug my ethernet cable… I don’t know how to do to prioritize my second route when my first cable is unplug.

I can try to give you more informations if you need.

Thank you.

You can’t disable dynamic routes. If you want to get rid of connected route, disable related ip address.

Thank you for your answer but I just want to prioritize the second path when the first (directly connected) is down; indeed, even if the cable is unplugged the route stay up and the packets don’t take the other way…

Anybody knows how I can change that? Have I to use scripts?


On cisco with the function keepalive when the interface is down the connected routes are down too…

As far as I know only option is script that will check if interface is running and disable/enable IP address.

I think it is the only option too… but in my case it isn’t a solution because I have vrrp on these interfaces and if I disable the ip address, the vrrp won’t work as well as I want.

I really don’t understand why it is not automatic to disable connected routes when the interface goes down… I find that amazing…

Thank you for your answers.