I am trying to load balance a router to send traffic over two uplinks (with equal capacity). I generated static routes for every /8 on the internet (for ipv4) and plugged it in. Unfortunately it does not appear to be having the desired effect. I noticed that checking the forwarding table for a specific ip there were three routes, my two static /8s and a single more specific route (a /24 instead of /8) which was learned through bgp. Can anyone confirm that Junos will route traffic to a more specific route even if it was discovered from a less preferred source such as BGP over a manually entered static route.
This source suggests that the way the route was learned is always chosen first (item 2 after checking link is up)
Choose the path with the lowest preference value (routing protocol process preference).