I believe this is how the protocol works. In this case, when presented to the Dijkstra algorithm, the L1 should be preferred over the L2. Changing the protocol preference is not swaying this calculation as the preference is applied to results of calculation and does not affect the calculation itself. The routes that Dijkstra calculates will be sent to the route table where the preference will then be added and compared. However, Dijkstra favors the L1 route and not the L2 route, so this never becomes a battle of route protocol preference.
OSPF Route Type Attribute The route type attribute carries the OSPF area ID and LSA type: Type of route Origin of route 1 - intra-area route Type 1 LSA 2 - intra-area route Type 2 LSA 3 - interarea summary route Type 3 LSA 5 - external route (area ID = 0) Type 5 LSA 7 - external route (area ID = 0) Type 7 LSA
rossonieri#1 wrote: » ok, so the type 3 will never win to both type 1 & 2.
rossonieri#1 wrote: » if we cant change the L2 external-preference on Rx to win over L1 - then using which way to make it possible?
if i have a lsa 2 telling me i can reach in my 1.1.1.1 on my local broadcast segment, why would i want to listen to lsa 3 telling me to send my traffic completely out of my area.
Rx/HQ/main data-center ---L2--- R2/Medium Branch --- <static> --- R1/backup data-center | | ----L1------ R3/small branch --L1----
if you were really intent on this, i guess one avenue of attack would be conditional route redistribution.
rossonieri#1 wrote: » if i cant have that direct connection from Rx to R2 to replicate my DB to R1, then i should overwhelmed R3, and this condition should probably apply to other area as well (some with the same scenario).