I have a site with static routes (no BGP) to multiple transit providers where we want to optimize the path to some specific AS’es by creating static routes for their prefixes via specific providers.
To automatically manage this, we were looking at tools like using peval from http://irrtoolset.isc.org/ to list the prefixes announced by the AS’es to dynamically script the creation of routes.
Say that we for instance would always like to route all Netflix traffic via one of the providers, peval would then give us this output…
peval as2906
({208.75.76.0/22, 208.75.76.0/24, 208.75.77.0/24, 208.75.78.0/24, 208.75.79.0/24, 198.45.48.0/20, 198.38.96.0/19, 198.38.120.0/24, 198.38.121.0/24, 198.38.116.0/24, 198.38.117.0/24, 198.38.118.0/24, 198.38.119.0/24, 192.173.64.0/18, 185.9.188.0/22, 185.2.220.0/22, 185.2.220.0/24, 185.2.221.0/24, 108.175.32.0/20, 108.175.47.0/24, 69.53.224.0/19, 66.197.128.0/17, 64.120.128.0/17, 45.57.0.0/17, 37.77.184.0/21, 37.77.188.0/23, 37.77.184.0/23, 37.77.186.0/23, 23.246.0.0/18, 23.246.28.0/24, 23.246.29.0/24, 23.246.20.0/24, 23.246.15.0/24})
… which we then could build a script from.
Or we could maybe use the RtConfig tool in the same package and modify it for RouterOS..
But before we try to do this ourselves - has someone else already done something like this for RouterOS ?