After the PrefVals of BGP routes are set, the route with the greatest PrefVal is selected when multiple routes to the same destination exist in the BGP routing table.
If a peer is configured with a preferred value, all routes learned from the peer have the preferred value. When multiple routes to the same address prefix exist, the route with the greatest preferred value is selected.