• A is a route with a higher Administrative Distance than the primary route. This route acts as a backup route in case the primary route is down.

    Let's look at the example below. Here you can see a network topology with R1, R2, and R3.

    Floating static route topology with R1 using OSPF to reach 192.168.3.0/24 via R2 and a backup static route via R3

    Figure 1 – Topology

    In this topology, R1 wants to reach the 192.168.3.0/24 network.

    It can use two paths:

    • The primary route goes through R2 using OSPF, a dynamic routing protocol covered later in this path, which has an of 110.

    • The backup path uses a with an of 130.

    Primary Route with OSPF

    R1 installs the route with the lowest in its routing table. In this case, it will select and use the route, which has an of 110.

    R1 can send traffic through R2 and reach 192.168.3.0/24.

    Diagram showing OSPF preferred path with administrative distance 110 from R1 to R2 to reach 192.168.3.0/24

    Figure 2 – Preferred Path and Fallback

    Floating Static Route on OSPF Failure

    But now let me show you why the is used. Imagine the link between R1 and R2 is down. The OSPF neighbor adjacency will go down and the route for the 192.168.3.0/24 network learned via will be lost.

    Since the path with R1 -> R3 -> 192.168.3.0/24 does not use , a can be used. In case the primary route goes down, a static route with a higher can be installed during the outage of the primary route.

    Floating static route used when OSPF path fails.

    Figure 3 – Activation After Failure

    Here, R1 will install the in its routing table and will be able to send traffic to 192.168.3.0/24.

    Restoring the OSPF Route

    When the link between R1 and R2 is back, the router will use the route again. This happens because the router prefers the route with the lowest .

    OSPF route restored via R2 after link recovery, preferred over static route.

    Figure 4 – Reinstating as the Primary Route After Link Recovery

    Why not use OSPF everywhere?

    One question you can ask yourself is:

    "Okay, but why didn't we use on all routers? can decide on a new route."

    That's a great question! The answer is simple: you can't always run a dynamic routing protocol everywhere.

    R3 might be a client router you can’t control. Since can’t run on the link between R1 and R3, using a is the best option.

    Answer the question below

    What role does a Floating Static Route provide in the network?