The Junos OS routing protocol process assigns a default preference value (also known as an administrative distance) to each route that the routing table receives. The default value depends on the source of the route. Ranks routes received from different sources primary criterion for selecting the active route used as a tiebreaker when the same destination prefix is available through multiple sources.
Route Preference Values
And BGP preference value is 170. OSPF internel 10.
Lowest preference value route are * mark that mean best route.
source@router# run show route
10.1.1.0/24 *[Static/5] 00:10:24
> to 172.29.30.253 via ge-0/0/10.0
[OSPF/10] 00:03:38, metric 2
> to 172.18.25.2 via ge-0/0/13.0
Local via ge-0/0/0.0