OSPF routes with routing marks

Hello Everyone

Hope somebody can help, does anyone know how to distribute route with routing mark lets say that two routers have access to let say 1.1.1.0/24 network in one of his routing table i want to put routing mark let’s say ‘gw1’, another router also has access to this 1.1.1.0/24 network but it has in it’s routing table ‘gw2’ set as a routing mark. What i want achieve is to make those two routers distributes their routes on to say third router, and so that third router can install two routes to 1.1.1.0/24 but with two different routing marks (gw1 and gw2). I couldn’t achieve that, i was tryind to do some magic with filters but it didn’t help. I’m not sure if it is even possible so I really really need a clue :slight_smile:.

I just add that my ospf mesh is runnig correctly, and the problem involves backbone area.

I really appreciate any kind of help

Best Regards
Michal

Can anyone help? pretty plz.

Maybe you have some other solution to achieve this?

Cheers
Michal

OSPF will distribute ONLY routes from main routing table - only routes without routing-marks

Thats it!

BUt it is possible to redirect incoming routes to some other routing table - by using routing filters in ospf-in chain.

don’t have a clue will it help you or not!

yes, i tried filters but only matcher that i found working is prefix matching, which in case when you get same two prefixes but from different routers you are unable to distinguish them. Maybe someone knows how to handle this in correct way?