CCNA 200-301Chapter 49 of 260Objective 3.2

Floating Static Routes

In the CCNA 200-301 exam, you must understand not only how dynamic routing protocols choose the best path, but also how to manually influence path selection for backup scenarios. Floating static routes are a critical tool for network engineers to provide redundancy without the complexity of a full dynamic routing protocol. This topic falls under Exam Objective 3.2: Configure and verify IPv4 and IPv6 static routing, and it frequently appears in scenario-based questions where you must identify why a backup route is not being used or how to configure it correctly.

25 min read
Intermediate
Updated May 31, 2026

The Designated Driver and the Backup Plan

Imagine you are planning a road trip from New York to Los Angeles. Your primary route is Interstate 80 (I-80) – it's fast, well-maintained, and you know it well. But you also have a backup route: Interstate 40 (I-40) through the southern states. You prefer I-80, but if there's a major accident or road closure, you'll take I-40. To implement this, you program your GPS with both routes. The GPS assigns a 'preference score' to each route: I-80 gets a score of 10 (lower is better), and I-40 gets a score of 20. As long as I-80 is available (no traffic jams reported), the GPS will always select I-80. If I-80 becomes unavailable (e.g., a closure), the GPS automatically switches to I-40 because it's the next best route. In networking terms, the 'preference score' is the administrative distance (AD). A floating static route is a static route with a higher AD than the primary route (usually learned via a dynamic protocol like OSPF or EIGRP). The primary route has a lower AD (e.g., 110 for OSPF), so it stays in the routing table. The floating static route has a higher AD (e.g., 130), so it only appears when the primary route disappears. Just like your GPS, the router automatically fails over to the backup static route when the primary is gone. This mechanism provides simple, predictable redundancy without the overhead of running a dynamic routing protocol on the backup link.

How It Actually Works

A floating static route is a static route configured with an administrative distance (AD) greater than that of the primary route. The primary route is typically learned via a dynamic routing protocol (e.g., OSPF, EIGRP) or another static route with a lower AD. The term 'floating' refers to the fact that this static route only appears in the routing table when the primary route is not present – it 'floats' in and out of the routing table as the primary route fails and recovers.

Why Use Floating Static Routes?

Floating static routes provide a simple, lightweight method for backup connectivity. They are often used on stub networks, branch offices, or in scenarios where a secondary link (e.g., a cellular backup or a low-bandwidth WAN link) should only be used if the primary link fails. Unlike dynamic routing protocols, floating static routes require no neighbor relationships, no hello timers, and no complex configuration. They are deterministic – the engineer knows exactly which path will be used as backup.

How Does It Work?

Consider a router R1 that connects to the corporate network via two paths:

Primary: FastEthernet0/0 (connected to OSPF area 0) – learns route 10.0.0.0/8 via OSPF (AD 110)

Backup: Serial0/0/0 (a point-to-point link to another router) – configured with a static route to 10.0.0.0/8 with AD 130

Under normal conditions, R1's routing table contains the OSPF-learned route because its AD (110) is lower than the static route's AD (130). The static route is present in the configuration but not in the routing table. When the primary link fails (e.g., FastEthernet0/0 goes down), the OSPF route is removed from the routing table. The router then re-evaluates its routing table and finds the floating static route (AD 130) as the best path for 10.0.0.0/8. It installs this route in the routing table. Traffic now flows over the backup link.

When the primary link comes back up, OSPF re-converges and the OSPF route (AD 110) returns. The router compares ADs: 110 < 130, so the OSPF route is preferred. The floating static route is removed from the routing table (but remains in the configuration).

Administrative Distance Values

Cisco IOS uses default AD values for various route sources. For floating static routes, you set the AD to a number higher than the primary route's AD. Common defaults:

Connected: 0

Static: 1

EIGRP (internal): 90

OSPF: 110

IS-IS: 115

RIP: 120

EIGRP (external): 170

Unknown: 255

For example, to create a floating backup for an OSPF route, use AD 120 or higher (but less than 255). For an EIGRP internal route, use AD 100 or higher.

Configuration Syntax

To configure a floating static route, add the distance keyword at the end of the ip route command:

ip route <destination-network> <subnet-mask> <next-hop-ip> <distance>

Example:

ip route 10.0.0.0 255.0.0.0 192.168.1.2 130

This creates a static route to 10.0.0.0/8 via next-hop 192.168.1.2 with AD 130.

Verification Commands

To verify floating static routes, use:

show ip route – Look for the route. If the primary route is up, you will not see the floating static route. If the primary is down, you will see it with its configured AD.

show ip route static – Shows all static routes, including floating ones (even if not in the routing table).

show ip route <network> – Shows detailed information for a specific network, including the source and AD.

show running-config | include ip route – Displays all static route configurations.

Example output when primary route is up:

R1# show ip route 10.0.0.0
Routing entry for 10.0.0.0/8
  Known via "ospf 1", distance 110, metric 20
  Last update from 10.1.1.1 on FastEthernet0/0, 00:00:05 ago
  ...

Example output when primary route is down:

R1# show ip route 10.0.0.0
Routing entry for 10.0.0.0/8
  Known via "static", distance 130, metric 0
  Last update from 192.168.1.2 on Serial0/0/0, 00:00:02 ago
  ...

Interaction with Dynamic Routing

Floating static routes work seamlessly with dynamic routing protocols. The router always prefers the route with the lowest AD, regardless of whether it is static or dynamic. This allows you to use a static route as a backup for a dynamic route, or vice versa. However, be careful: if the primary route is learned via a protocol with a higher AD (e.g., RIP, AD 120) and you configure a static route with AD 1 (default), the static route will always be preferred – that's not a floating static route, it's a static route overriding the dynamic one.

IPv6 Floating Static Routes

The concept is identical for IPv6. Use the ipv6 route command with the distance parameter:

ipv6 route 2001:db8:1::/48 2001:db8:2::2 130

Verification uses show ipv6 route.

Walk-Through

1

Identify Primary and Backup Links

Determine which link is the primary (should be used under normal conditions) and which is the backup (should only be used if the primary fails). The primary link typically has a dynamic routing protocol running (e.g., OSPF) or a lower-AD static route. The backup link will be configured with a floating static route. For example, primary: GigabitEthernet0/0 with OSPF; backup: Serial0/0/0 with a static route.

2

Configure the Primary Route

Ensure the primary route is operational. This could be via a dynamic routing protocol (e.g., OSPF, EIGRP) or a static route with default AD (1). For dynamic protocols, verify neighbor adjacencies and route exchange. For example, configure OSPF on interface GigabitEthernet0/0 and verify with `show ip ospf neighbor`.

3

Configure the Floating Static Route

On the router, enter global configuration mode and add the backup static route with a higher AD than the primary route. For OSPF (AD 110), use AD 120 or higher. For example: `ip route 10.0.0.0 255.0.0.0 192.168.1.2 130`. This route will only appear in the routing table when the primary route is removed.

4

Verify the Routing Table with Primary Up

Use `show ip route` to confirm that the primary route is in the routing table and the floating static route is not. The output should show the OSPF-learned route (AD 110) for the destination network. The floating static route (AD 130) should not appear. Also use `show ip route static` to see that the static route exists in the configuration but is not installed.

5

Simulate Primary Link Failure

To test the floating route, shut down the primary interface: `interface GigabitEthernet0/0` then `shutdown`. Wait a few seconds for OSPF to remove the route (OSPF hello timer default 10 seconds, dead interval 40 seconds). Then check the routing table with `show ip route`. The floating static route should now appear with AD 130. Traffic should now use the backup link.

6

Restore Primary Link and Verify Reversion

Bring the primary interface back up: `no shutdown` on GigabitEthernet0/0. Wait for OSPF to re-establish adjacency and exchange routes. Use `show ip route` to confirm that the OSPF route (AD 110) reappears and the floating static route is removed from the routing table. This confirms that the router correctly prefers the lower AD route.

7

Document and Monitor

Document the floating static route configuration for future troubleshooting. Use `show running-config | include ip route` to capture the configuration. Monitor the routing table over time to ensure the floating route only appears during failures. Consider setting up logging or SNMP traps to alert when the backup route is used.

What This Looks Like on the Job

In enterprise networks, floating static routes are commonly used to provide backup connectivity for branch offices that have a primary MPLS connection and a secondary internet VPN or cellular link. For example, a branch router might learn the corporate network routes via OSPF over an MPLS circuit (AD 110). To ensure connectivity if the MPLS fails, the network engineer configures a floating static default route (0.0.0.0/0) with AD 130 pointing to a VPN concentrator or a cellular gateway. When the MPLS goes down, OSPF routes are removed, and the floating default route kicks in, sending traffic over the backup link. This is a simple, reliable solution without the need to run a dynamic routing protocol over the backup link (which might be bandwidth-constrained or metered).

Another scenario is in data center networks where you have a primary and a backup link to the core. Instead of using a dynamic protocol that might have slow convergence, you can use static routes with different ADs. For instance, a server farm router might have a primary static route to the default gateway with AD 1, and a floating static route with AD 10 via a backup link. This provides fast failover because the router immediately removes the static route when the interface goes down, and the floating route is already in the configuration.

Misconfiguration can lead to unexpected behavior. For example, if you set the floating static route's AD lower than the primary route's AD, the static route will always be used, defeating the purpose. Also, if you forget to specify the distance, the static route will have AD 1 and will override the dynamic route. Another common mistake is using the wrong next-hop IP or interface, causing the route to be unreachable when it should be used. Always verify with show ip route after configuration.

In production, floating static routes are often combined with IP SLA tracking to provide more intelligent failover. IP SLA can monitor the reachability of a remote host and adjust the administrative distance of the static route dynamically. For example, if the primary link is up but the remote end is unreachable, IP SLA can increase the AD of the primary static route so that the floating route takes over. This is beyond the CCNA scope but is a real-world extension.

How CCNA 200-301 Actually Tests This

The CCNA 200-301 exam tests floating static routes under Objective 3.2: Configure and verify IPv4 and IPv6 static routing. Expect scenario-based questions where you must identify the correct configuration for a backup route or troubleshoot why a backup route is not being used.

Common wrong answers and traps: 1. Forgetting the distance parameter: Many candidates configure a static route without specifying an AD, thinking it will be a backup. But default AD for static is 1, which is lower than OSPF (110) or EIGRP (90). So the static route becomes the primary, not the backup. The exam may ask: 'Which configuration provides a backup route for an OSPF-learned route?' The correct answer must include a distance value greater than 110. 2. Using the wrong distance value: Candidates might use AD 95 for a backup of an OSPF route. Since 95 < 110, the static route will be preferred. The backup must have a higher AD than the primary. 3. Confusing metric with administrative distance: Some think that setting a higher metric on the static route makes it a backup. But metric is only compared within the same routing protocol; static routes have a metric of 0. Administrative distance is used to compare routes from different sources. 4. Not verifying the route table: Questions may show a routing table output and ask why the floating route is not present. The answer could be that the primary route is still in the table (AD lower), or that the floating route's next hop is unreachable (interface down).

Specific values to memorize:

Default AD for static: 1

Default AD for OSPF: 110

Default AD for EIGRP (internal): 90

Default AD for RIP: 120

Default AD for EIGRP (external): 170

AD range: 0-255 (lower is better)

Decision rule: In a scenario where you need a backup route, identify the AD of the primary route (e.g., OSPF = 110). Choose a static route configuration with an AD greater than that (e.g., 120, 130, 150). Avoid AD values less than or equal to the primary's AD.

For IPv6, the same principles apply. The command is ipv6 route <prefix> <next-hop> <distance>. Verification uses show ipv6 route.

Key Takeaways

A floating static route is a static route with an administrative distance higher than the primary route's AD.

Default AD for static routes is 1; for OSPF it's 110; for EIGRP internal it's 90; for RIP it's 120.

To configure a floating static route, use the `ip route` command with the `distance` parameter (e.g., `ip route 10.0.0.0 255.0.0.0 192.168.1.2 130`).

The floating static route only appears in the routing table when the primary route (with lower AD) is removed.

Use `show ip route` and `show ip route static` to verify the presence or absence of the floating route.

Floating static routes work with both IPv4 and IPv6.

The most common exam trap is forgetting to set the AD, making the static route primary instead of backup.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Floating Static Route

Uses administrative distance to influence path selection

Simple configuration (one command per route)

Only provides backup failover, not load balancing

Works with any routing protocol

No performance impact on router CPU

Policy-Based Routing (PBR)

Uses route maps to match traffic and set next-hop

Complex configuration with multiple policy statements

Can be used for load balancing, QoS, or path selection based on traffic type

Does not interact with routing protocols; overrides routing table

Can cause higher CPU usage if many packets are processed

Watch Out for These

Mistake

Setting a higher metric on a static route makes it a backup route.

Correct

Metric is only compared within the same routing protocol. Static routes have a metric of 0. To make a static route a backup, you must set a higher administrative distance than the primary route.

Candidates often confuse metric and administrative distance, both of which are used for path selection but in different contexts.

Mistake

A floating static route is automatically installed in the routing table even when the primary route is up.

Correct

A floating static route is only installed when the primary route (with lower AD) is not present. It floats in and out of the routing table.

The term 'floating' might be misinterpreted as always being present but with lower priority.

Mistake

The default administrative distance for a static route is 0.

Correct

The default AD for a static route is 1. Connected routes have AD 0.

Candidates may confuse connected routes (AD 0) with static routes.

Mistake

Floating static routes can only be used as backup for other static routes.

Correct

Floating static routes can back up routes from any source, including dynamic routing protocols like OSPF, EIGRP, and RIP.

Some think static routes only interact with other static routes, but AD comparison works across all route sources.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the default administrative distance for a static route?

The default administrative distance for a static route in Cisco IOS is 1. This means that by default, a static route is preferred over routes learned by most dynamic routing protocols (e.g., OSPF has AD 110, EIGRP has AD 90). To make a static route a backup (floating), you must explicitly set its AD to a value higher than the primary route's AD. For example, to back up an OSPF route, use AD 120 or higher. Always verify with `show ip route` to ensure the correct route is being used.

How do I verify a floating static route is configured but not active?

Use `show ip route static` to see all static routes, including those not installed in the routing table. The output will show the route with its configured AD. Then use `show ip route <network>` to see which route is currently active. If the primary route is up, the floating route will not appear in the main routing table. You can also use `show running-config | include ip route` to see the configuration.

Can a floating static route back up a connected route?

Yes, but connected routes have an AD of 0, which is the lowest possible. To back up a connected route, you would need a static route with an AD greater than 0 (e.g., 1 or higher). However, if the interface goes down, the connected route is removed, and the static route (even with AD 1) will be installed. But if the interface is up, the connected route (AD 0) is always preferred. This is rarely needed because connected routes are directly attached and fail if the interface fails.

What happens if the next-hop of a floating static route becomes unreachable?

If the next-hop interface is down or the next-hop IP is unreachable, the floating static route will not be installed in the routing table, even if the primary route is absent. The router only installs routes with a valid next hop. This can cause a loss of connectivity if no other route exists. Always ensure the backup link is operational and the next-hop is reachable. Use `show ip route` to verify the route is present when expected.

Can I use a floating static route with IPv6?

Yes, the concept is identical for IPv6. Use the `ipv6 route` command with the `distance` parameter. For example: `ipv6 route 2001:db8:1::/48 2001:db8:2::2 130`. Verification uses `show ipv6 route`. The same rules apply: the AD must be higher than the primary route's AD (e.g., OSPFv3 has AD 110).

What is the difference between a floating static route and a static route with a lower metric?

A static route does not have a configurable metric; its metric is always 0. The administrative distance (AD) is used to compare routes from different sources. A floating static route uses a higher AD to become a backup. In contrast, if you configure two static routes to the same destination with different metrics (which is not possible; all static routes have metric 0), the router would use the one with the lower AD (if ADs differ) or load balance (if ADs are equal). So, you cannot use metric to create a backup static route; you must use AD.

On the CCNA exam, how will I be tested on floating static routes?

Expect multiple-choice questions that present a scenario with a primary route (e.g., OSPF-learned) and ask you to select the correct command to configure a backup static route. Also, you may be shown a routing table output and asked to interpret why a floating route is or isn't present. Key traps: forgetting the distance parameter, using a distance lower than the primary, or confusing AD with metric. Memorize default AD values for static (1), OSPF (110), EIGRP (90), and RIP (120).

Terms Worth Knowing

Ready to put this to the test?

You've just covered Floating Static Routes — now see how well it sticks with free CCNA 200-301 practice questions. Full explanations included, no account needed.

Done with this chapter?