Routes

Hello

I have ospf running and it adds routes with a distance of 100

I added al2tp tunnel and added a route over that with a distance of one but the data still takes teh ospf advertised path :frowning:

Does anyone know why this would be?

Thanks

Ok,

from what I can tell it favors smller prefixes, even if the distance is longer.

Does anyone know how I can fix this?

Thanks

I’m facing this same issue, and could not find a way to resolve it. I hope there is a way to do it in RouterOS.

There’s nothing to fix. That is how IP routing works. The router finds the most specific match for the address it’s routing to. That’s how a default route works … it is the least specific possible prefix, therefore it is only used when no more specific route is in the routing table.

To make the prefixes match between your static routes and your ospf routes, either make your static routes more specific to match the ospf ones, or, use ospf summarization and have an area range match your static route.

Yes, but I do not want to advertise all the pppoe customers like /32, I want to summarize and these has to be fixed.

thanks

If you want to summarize pppoe /32 routes, then do as awsmith wrote - use ospf area range.