When the JUNOS software determines a route’s preference to become the active route, it selects the route with the lowest preference as the active route and installs this route into the forwarding table. By default, the routing software assigns a preference of 170 to routes that originated from BGP. Of all the routing protocols, BGP has the highest default preference value, which means that routes learned by BGP are the least likely to become the active route. (For more information about preferences, see Route Preferences.)
To modify the default BGP preference value, include the preference statement, specifying a value from 0 through 4,294,967,295 (232– 1):
-
preference preference;
For a list of hierarchy levels at which you can include this statement, see the statement summary section for this statement.