Exact Extract — Official Administration Guide
FortiOS 8.0.0 Administration Guide | Static route distance and priority | p. 615
“A routing table consists of only the best routes learned from the different routing protocols. The most specific route always takes precedence. If there is a tie, then the route with a lower administrative distance will be injected into the routing table. If administrative distances are also equal, then all the routes are injected into the routing table, and Cost and Priority become the deciding factors on which a route is preferred. If these are also equal, then FortiGate will use Equal cost multi-path on page 634 to distribute traffic between these routes.”
Technical Deep Dive
A routing table consists of only the best routes learned from the different routing protocols. The most specific route always takes precedence. If there is a tie, then the route with a lower administrative distance will be injected into the routing table. If administrative distances are also equal, then all the routes are injected into the routing table, and Cost and Priority become the deciding factors on which a route is preferred. If these are also equal, then FortiGate will use Equal cost multi-path on page 634 to distribute traffic between these routes.
FortiGate determines which static routes are installed in the routing table primarily by evaluating the destination prefix and administrative distance. When multiple routes have identical destination prefixes and administrative distances, FortiOS can install all qualifying routes in the routing table, even when their priority values differ.
The exhibit contains four default routes configured for destination 0.0.0.0/0:
All four routes have the same destination prefix. Therefore, FortiGate compares their administrative distances first. The routes through port3 and port4 have the lowest administrative distance of 5, so both qualify for installation in the routing table. The routes through port2 and port8 have a higher administrative distance of 20 and are excluded while the lower-distance routes remain available.
Although both port3 and port4 appear in the Routing page, port3 is the preferred forwarding path because its priority value of 5 is lower than port4 ' s priority value of 20. FortiOS treats a lower numerical priority as more preferable when the administrative distances are equal.
FortiOS 8.0 verification note: Both low-distance routes are installed; port3 is preferred due to lower priority.