if multiple route entries are present in router for same destination with different routing protocol means with administrative distance value (AD) value . Lowest the AD value have more priority to choose route entry
Layers 3 devices chooses routing protocols considering AD value (administrative distance) lesser the AD value have more priority for choose routing protocol by Layer3 devices when more than one routing protocol is configured
Default Adminstrative value of routing protocols
Directly connected route => 0
Static routing protocol => 1
RIP ===============>>120
EIGRP ==============>>90
OSPF =≠=============>> 110
Lesser the AD value more priority to choose routing protocol by layer3 devices
For example
If Layer3 devices is configured with RIP and OSPF routing protocols advertising same route to same destination . Layer 3 devices use OSPF routing protocols advertise route details for passing traffic because OSPF routing protocols AD value is less than RIP
We even have feasible to changes default AD values of routing protocols according to our requirements