I have mikrotik router (RB2011) connected to three external networks by PPPoE (via different providers).
All of them has default route, and there are a number of static routes, addressed to the gateway of a particular provider
I wrote a script to deactivate some of static routes and activate another one, if PPPoE interface goes down.
But I don't know the number of route, that is nesessary to disable/enable/delete routes - the number of routes may be chanched by order of PPPoE interface start or if it was temporary disconnected.
So, how can I disable/enable/delete route by it parameters - network, gate, etc?