How to configure Floating Static Route

The network administrators use floating static routes to provide a backup path to a primary static or dynamic route in case of a link failure. The floating static route works only when the primary route is not available. The primary route may fail due to physical layer problems, a wrong configuration, or many other reasons. The router will choose the path with the lowest administrative distance if multiple routes are available to the destination. Remember that Administrative distance determines the trustworthiness of a route. If multiple paths exist to the destination, the router will choose the route with the lowest administrative distance value.

The default administrative distance of EIGRP is 90, so if we want to configure the floating static route for EIGRP routes, it must be configured with an administrative value higher than 90. If the floating static route is configured with a lower value than 90, the router will use that static route first.

How to configure Floating Static Route

In the figure above, the host has two paths to reach a web server.

Router3 has two default static routes configured, one with the default value of administrative distance and the other with an administrative distance of 3. Router3 typically sends data to the web server via Router1 because the static route pointing to Router1 is configured with the default AD value (1). The route pointing to Router2 is configured with an AD value of 3, so this is the static floating route.

When there is a problem in the first path, the router should automatically delete the first route from the routing table and add the floating static route in the routing table. So, the traffic will flow to the web server via the floating route. The administrative distance value of common protocol is the following:

  • Static – 1
  • EIGRP = 90
  • IGRP = 100
  • OSPF = 110
  • IS-IS = 115
  • RIP = 120

Configure Floating Static Route

We can configure the static route using the “ip route” command in global configuration. If the administrative distance is not specified, the default value is (1). For example, the above topology configures the default static route with its default administrative distance pointing to Fast Ethernet 0/0 of Router3. So, the static floating route should be configured using the following command in global configuration mode.

  • Router3>enable
  • Router3#configure terminal
  • Router3(config)#ip route 0.0.0.0 0.0.0.0 FastEthernet 0/1 3
  • Router3(config)#exit
  • Router3#wr

Verify the Floating Static Route

Router3 has a default static route pointing to Router1 with default administrative distance and a floating static route pointing to Router1 with an AD value of (3). So, this value is greater than the default value of 1, and, as a result, this route floats and is not present in the routing table unless the preferred route fails. So, we can use the “show ip route” command. The following image verifies the default route configured from Router 1 to Router 3 in the routing table. The floating route is not present in the routing table.

How to configure Floating Static Route

We can also verify the route using the “tracert and traceroute” command. I can verify the floating static route by disconnecting the cable between Router1 and Router3. Then, I can check Router3’s routing table. The figure below illustrates the routing table for removing the cable between Router3 and Router1.

How to configure Floating Static Route