Route preference and fallback
Preference is not prefix length
Routing systems may learn several candidates for the same prefix. A control-plane policy decides which eligible candidate or candidates to install. Administrative distance in Cisco IOS XE is a local preference between route sources, not a hop count; lower values are preferred, and 255 is unusable there. Other systems have different policies and numbers. A metric ranks paths according to the rules of the relevant protocol, such as a configured cost. Metrics from unrelated protocols are not necessarily comparable.
Select first, forward second
In the explicitly simplified Cisco-like worksheet below, lower distance wins among eligible candidates for the identical prefix. Assume P, S, D and G are distinct reachable next hops, no ECMP, no policy routing, and no tie. The /24 via P is installed instead of S. The /16 via D and default via G are independently installed. Traffic to 10.30.5.7 uses P, even though D has distance 1: the /24 is more specific. Traffic to 10.30.6.7 uses D.
Prefix Next hop Distance Origin10.30.5.0/24 P 110 learned10.30.5.0/24 S 200 static10.30.0.0/16 D 1 static0.0.0.0/0 G 1 staticFloating static routes
A floating static route is configured with a less preferred administrative distance so an eligible primary route to the same prefix normally wins. In the worksheet, if P becomes ineligible and S remains eligible, the /24 via S is installed. If both become ineligible, the /16 via D wins for the same packet. This does not prove that D can deliver it. IOS XE supports explicit distance after a static next hop. For an isolated fictional lab where 198.51.100.2 is a reachable backup, the following static line illustrates distance 200. It is not a full device configuration.
ip route 10.30.5.0 255.255.255.0 198.51.100.2 200Failure detection and discard routes
A remote failure can leave a local interface and next-hop route active, so a backup may not take over just because a service is unreachable. Health tracking or a routing protocol may provide additional failure evidence; support and timing depend on the platform. A deliberately installed discard (blackhole) route drops matching traffic rather than trying a less-specific route in this model. A selected unicast route whose downstream path silently loses traffic is a different kind of black hole. Diagnose the actual selected route and downstream state, not just the configuration.
Practice the fallback sequence
For 10.30.5.7 predict the installed next hop for four snapshots: all candidates eligible (P); P ineligible (S); both P and S ineligible (D); P, S and D ineligible (G). With every candidate ineligible there is no route. Equal-cost multipath can install multiple eligible paths under a suitable platform policy, but this worksheet excludes it. Do not infer measured convergence, automatic end-to-end recovery or symmetric paths from these snapshots. Next: dynamic routing foundations.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Route preference and fallback — knowledge check
Apply routing and static-route reasoning to fictional networks.
With all worksheet candidates eligible, which next hop serves 10.30.5.7?
P becomes ineligible but S remains eligible. Which next hop serves 10.30.5.7?
P and S both become ineligible; D and G remain. Which next hop is selected?
What does administrative distance describe in IOS XE?
A remote application fails but the primary route remains eligible. What can be concluded about backup activation?