IP connectivityIntermediate43 min read

What Is Floating static route in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

A floating static route is a backup pathway for data in a computer network. It sits quietly in the background and only activates when the main route stops working. Think of it as a spare tire that you only use when a regular tire goes flat.

Common Commands & Configuration

ip route 192.168.10.0 255.255.255.0 10.0.0.2 130

Configures a floating static route to network 192.168.10.0/24 via next-hop 10.0.0.2 with an administrative distance of 130. This route will only be used if no route with AD lower than 130 exists.

CCNA and Network+ exams test that the AD value (130) must be higher than the primary route's AD (e.g., 110 for OSPF). The command is often used in scenario questions to identify the correct backup configuration.

ip route 0.0.0.0 0.0.0.0 10.0.0.2 200

Creates a floating default route via next-hop 10.0.0.2 with AD 200. This provides a backup path for all traffic when the primary default route (e.g., learned via DHCP or static with AD 1) fails.

Common in CCNA exams for branch site redundancy. Tests the concept of backup default routes and that a higher AD means the route is less preferred.

ipv6 route 2001:db8:10::/64 2001:db8:1::2 130

Configures an IPv6 floating static route to prefix 2001:db8:10::/64 via next-hop 2001:db8:1::2 with AD 130. This route serves as a backup to an OSPFv3 route with AD 110.

IPv6 floating static routes appear in updated CCNA and Network+ exams. The principle is identical to IPv4; the key is remembering the 'ipv6 route' syntax and the AD value.

show ip route 192.168.10.0

Displays detailed routing information for the specific destination. If the primary route is active, the output shows only that route. If the primary is down, the floating static route appears with its AD.

Used in practical exam questions to verify route selection. You may be asked to interpret the output and determine which route is being used, or why a certain route is missing.

show ip route | begin Gateway

Displays the entire IPv4 routing table, starting from the 'Gateway of last resort' line. This allows you to see all routes, including whether the floating static route is present or not.

Helps in lab sims to quickly see the routing table. If the floating route is missing but expected, the primary route is still active. Exams test this diagnostic step.

show ip route static

Shows only static routes in the routing table. This command can reveal whether the floating static route has been installed (i.e., appears in the output) or remains in the configuration but not active.

Useful in troubleshooting questions where you need to confirm that a floating static route exists in the config but is not currently in the table because a primary route with lower AD is active.

debug ip routing

Enables debugging of routing table changes. When the primary route fails, you will see log messages indicating that the floating static route is being added to the routing table.

High-level exam concept: debugging provides real-time feedback on route installation. Troubleshooting questions may ask how to verify that a floating route was installed after a failure.

Floating static route appears directly in 28exam-style practice questions in Courseiva's question bank — one of the most-tested concepts on Cisco CCNA. Practise them →

Must Know for Exams

Floating static routes appear in multiple certification exams because they represent a core networking concept that bridges static and dynamic routing. On the CCNA exam (200-301), floating static routes are explicitly listed under the 'Configure and verify routing' objective. Candidates must understand how to configure a floating static route using the ip route command with a specified administrative distance. They also need to know how to verify the route's presence or absence in the routing table using show ip route. Exam questions often present a scenario where a primary OSPF or EIGRP route exists, and you must configure a backup static route that only activates when the primary fails. You might be asked to identify the correct administrative distance value to assign to the floating route so that it is less preferred than the dynamic route. For example, if the primary route is OSPF with AD 110, the floating static route must have an AD greater than 110, such as 115 or 120. The exam will test whether you know the default AD values for different routing protocols and how to adjust them.

On the Network+ exam (N10-008), the concept is covered under 'Compare and contrast routing concepts' and 'Given a scenario, configure and troubleshoot routing'. Network+ questions may ask about the purpose of administrative distance and how it is used to create a backup route. They may also present a scenario where a network administrator wants to ensure that a static route is only used as a last resort. The candidate must identify that setting a higher metric or administrative distance accomplishes this. While Network+ does not require deep configuration syntax, it does expect you to understand the concept and its application in a small-to-medium business network.

The AWS Solutions Architect Associate (SAA-C03) exam does not directly test 'floating static route' by name, but the concept translates to route table prioritization in VPCs. AWS VPC route tables use prefix length to determine route preference: the most specific prefix wins. However, you can create redundant routes to different targets, and understanding how backup routes work is part of designing highly available architectures. For example, if you have a VPN connection to on-premises as the primary route, and a backup internet-based connection, you need to configure the routing so that the backup is only used when the VPN is down. AWS does not support administrative distance directly, but you can achieve a similar effect using prefix lists, route propagation, and subnet associations. The mental model of a floating static route helps you design these backup patterns.

On the Azure AZ-104 exam, the concept appears in the context of custom routes and route tables. You can create user-defined routes (UDRs) with a priority value. Routes with lower priority numbers are preferred. To create a backup route, you can add a route with a higher priority (e.g., 200) that only becomes active if the route with lower priority (e.g., 100) is removed. This is functionally identical to a floating static route. Azure also supports BGP with ExpressRoute or VPN, and understanding how to configure a floating route as a backup is essential for high availability designs.

The Google ACE (Associate Cloud Engineer) exam covers similar concepts with VPC routes and custom route priorities. Google Cloud uses a priority system where lower numbers are preferred. You can create a backup route with a higher priority number, and it will only be used if the primary route is removed. Again, the floating static route concept applies.

For CompTIA Security+, the concept is more peripheral but still relevant. Security+ includes network infrastructure security, and understanding failover mechanisms is part of ensuring availability. A floating static route can be part of a resilient network design that maintains uptime during an attack or failure. Understanding how routes fail over can also help in forensic analysis of network traffic patterns during an incident.

floating static routes are tested directly on CCNA and Network+, and conceptually on cloud exams. Knowing the details of administrative distance, route selection, and configuration syntax will help you answer scenario-based questions and troubleshooting questions. Expect questions that show a routing table output and ask you to explain why a particular route is not being used, or to identify which configuration will create a backup route that only activates after a primary path failure.

Simple Meaning

Imagine you are driving to work every day. You have a main highway that is fast and reliable. But you also know a back road that is slower and longer. You only use the back road when the main highway is closed due to an accident or construction. In networking, your computer or router has a main path to send data. That main path is usually learned automatically through a routing protocol like OSPF or EIGRP. But sometimes the network administrator sets up a manual backup path, called a static route. This backup path is configured with a higher administrative distance, which is like a number that tells the router how trustworthy a route is. A lower number means more trustworthy. The main route, learned dynamically, has a low administrative distance. The floating static route is given a higher administrative distance, so the router prefers the dynamic route. But if the dynamic route disappears because a link goes down or a neighbor router fails, that floating static route pops into the routing table and takes over. It floats into action. That is why it is called floating. It is not active until it is needed. This technique is used to provide redundancy without the complexity of running a dynamic routing protocol just for a backup. It is simple, predictable, and gives the network engineer control over exactly which backup path will be used. The floating static route does not require any extra bandwidth or processing because it is just a static configuration entry. It is a classic tool in network design for ensuring high availability without adding unnecessary overhead. It is also a common topic on certification exams like CCNA and Network+ because it demonstrates understanding of administrative distance, route selection, and static routing fundamentals. In practice, you might see floating static routes used in branch offices connecting to a central headquarters, where the primary link is a leased line and the backup is a slower DSL or 4G connection. The floating static route makes sure traffic keeps flowing even if the primary link goes down.

For someone new to networking, the most important thing to grasp is that a floating static route is not a special type of route but rather the clever use of a normal static route with a higher administrative distance. It is a design trick that uses the router’s decision-making process. The router always chooses the route with the lowest administrative distance when multiple routes exist to the same destination. By setting the backup static route with a higher administrative distance, you ensure it remains hidden until the primary route disappears. This is pure engineering elegance: using a simple mechanism to create a safety net. It also means you do not need to run a dynamic routing protocol like BGP or OSPF just to have a backup. That saves CPU, memory, and configuration complexity on small routers. In large enterprises, floating static routes are often used as a final fallback, sometimes called a default route of last resort. They are also common in dual-homed connections where an organization has two internet service providers. The primary ISP route is learned via BGP with a low administrative distance, while a floating static route points to the backup ISP modem with a higher administrative distance. If the BGP session drops, the floating static route takes over. All of this makes the floating static route a fundamental concept that appears in both theory and practical configuration scenarios on exams and in real network operations.

Full Technical Definition

A floating static route is a statically configured IP route that is placed into the routing table with an administrative distance (AD) value higher than that of the primary route, typically a dynamically learned route from a routing protocol such as OSPF, EIGRP, or BGP. Administrative distance is a Cisco-developed metric used by routers to select the best path when multiple routing sources provide information about the same destination network. The lower the AD value, the more trustworthy the route source. For example, a directly connected interface has an AD of 0, a static route defaults to 1, EIGRP internal routes have 90, OSPF has 110, RIP has 120, and an external EIGRP route has 170. A floating static route is configured with an AD value greater than that of the primary routing protocol, so the router will never use it as long as the primary route is present. The term floating refers to the route's ability to appear or disappear from the routing table based on the availability of the primary route. When the primary route is removed due to a link failure, neighbor loss, or protocol withdrawal, the floating static route is installed in the routing table and traffic is forwarded via the backup path. This mechanism provides redundancy without requiring the complexity of a full dynamic routing protocol exchange for the backup path.

From a technical implementation perspective, the floating static route is configured using the standard ip route command on Cisco IOS, with the addition of an administrative distance parameter at the end. For example, ip route 0.0.0.0 0.0.0.0 192.168.2.1 200 creates a default floating static route pointing to next-hop 192.168.2.1 with an AD of 200. If a default route learned via DHCP or a routing protocol has an AD lower than 200, this floating route will not appear in the routing table unless the primary default route is removed. The router evaluates the routing table after any change, recalculating the best path for each destination. The floating static route only becomes active when the route with a lower AD is no longer available. This process is entirely deterministic and does not require any dynamic signaling. The failure detection depends on the mechanism that monitors the primary route. If the primary route is a directly connected interface, the router detects the interface going down almost instantly. If the primary route is learned via a dynamic protocol, the router relies on timers such as the dead interval in OSPF or the hold-down timer in EIGRP. In some designs, engineers combine floating static routes with IP SLA (Service Level Agreement) tracking to monitor reachability beyond the local router. IP SLA sends periodic probes (e.g., ICMP echo) to a target IP address. If the probes fail, the IP SLA mechanism can trigger the floating static route by manipulating the route's state, often by changing the tracked object's status which causes the route to be withdrawn or installed. This adds an extra layer of intelligence beyond simple interface or protocol state changes.

Floating static routes are specified in RFC 1812, Requirements for IP Version 4 Routers, which describes the general principles of static routing, though the concept of administrative distance is a Cisco-proprietary implementation. Other vendors like Juniper use a similar concept called preference, and Huawei uses priority. The underlying principle is the same: when multiple routes exist, the one with the lowest metric or preference wins. In multi-vendor environments, understanding these differences is crucial. For example, on Juniper JunOS, the default preference for a static route is 5, while OSPF internal routes have a preference of 10. To create a floating static route on JunOS, you would set the preference to a value higher than the dynamic route, such as 200. The behavior is identical in concept but implemented with different terminology. In Microsoft Windows Server routing and Linux networking, similar concepts exist. On Linux, the Linux kernel routing table uses a metric value, and you can add a static route with a higher metric to act as a backup. On Windows, the route add command can specify a metric. In all cases, the principle is the same: the route with the lowest metric is preferred, and the floating static route is a backup that only becomes active when the primary route is gone.

One critical design consideration is that the floating static route should point to a next-hop that is reachable from the router. If the backup path itself fails, the floating static route will also fail, but it may remain in the routing table if the next-hop is still reachable via some other means. To avoid this, many network engineers use a null0 or discard route as a last resort, or they combine the floating static route with a tracking mechanism like IP SLA to ensure the backup path is actually functional before installing it. Another issue is routing loops: if two routers both have floating static routes pointing to each other as backups, a failure can cause a routing loop. This must be carefully designed with appropriate metrics and route filtering. Floating static routes are also commonly used in conjunction with policy-based routing (PBR) and route maps to provide even more granular control over traffic flow. In practice, they are a staple in almost every enterprise network, especially in hub-and-spoke topologies, multi-homed internet connections, and disaster recovery scenarios where a secondary path must be ready but not interfere with normal operations. Understanding the interaction between administrative distance, route selection, and static routing is fundamental for any network professional and is heavily tested in CCNA and Network+ exams as well as cloud networking exams like AWS SAA and Azure AZ-104 where similar concepts apply to virtual private cloud (VPC) route tables and subnets.

Real-Life Example

Think about a large office building with two elevators. The main elevator is fast, spacious, and always used by everyone. But there is also a service elevator in the back that is slower and smaller. The service elevator only gets used when the main elevator is broken or under maintenance. The service elevator is like a floating static route. It exists, it is ready, but it is not used unless the primary fails. The building manager configures the system so that the main elevator gets priority. When the main elevator breaks down, the control system automatically switches to the service elevator. People still get to their floors, just a bit slower. In networking, the main elevator is the primary route learned via a dynamic protocol. The service elevator is the floating static route with a higher administrative distance. When the primary path fails, the router automatically activates the backup floating static route. The building manager does not need to run down and manually flip a switch. The system handles it. Similarly, the network engineer does not need to log in and change the routing table. The floating static route appears automatically.

Now imagine the building has a third elevator that is even older and slower, used only for heavy furniture. That would be a second floating static route with an even higher administrative distance. In networking, you can have multiple floating static routes with different administrative distances, creating a tiered backup plan. This is common in multi-homed connections. For instance, a company might have a primary fiber connection, a backup DSL line, and a third cellular 4G backup. Each backup is configured as a floating static route with a progressively higher administrative distance. If the fiber fails, the DSL takes over. If the DSL also fails, the 4G kicks in. This is called a failover chain.

Another analogy is a substitute teacher in a school. The regular teacher (primary route) teaches every day. If the regular teacher is sick, the substitute (floating static route) comes in. The substitute is trained and ready, but does not disrupt the class unless needed. The school has a list of substitutes, each with priority. The first substitute is called first. If that substitute is unavailable, the next one is called. This is exactly how floating static routes work with administrative distance. The router always tries the lowest AD first. If it disappears, the next higher AD route becomes active. This pattern repeats until a route is found or the destination is declared unreachable.

In a home context, think of your Wi-Fi and a wired Ethernet connection to your laptop. The wired connection is faster and more stable, so you use it as the primary. When you unplug the Ethernet cable, your laptop automatically switches to Wi-Fi. The laptop has a built-in mechanism (similar to administrative distance) that prefers wired over wireless. The Wi-Fi is a floating backup. Most people do not think about it, but that is exactly what happens. The operating system uses a metric: wired connections have a lower metric than wireless. So the wireless connection is essentially a floating default route that only becomes active when the wired route is gone.

Why This Term Matters

In real-world IT networks, downtime costs money. Every minute that a critical service is unreachable can translate into lost revenue, lost productivity, and damaged reputation. Floating static routes provide a simple, reliable, and low-overhead way to ensure network connectivity remains intact when a primary link fails. Unlike dynamic routing protocols that require complex configuration, continuous hello messages, and CPU cycles to maintain neighbor relationships, a floating static route is a static entry that does nothing until it is needed. This makes it ideal for small branch offices, remote sites, or any environment where simplicity and reliability are more important than dynamic path optimization. For example, a retail store with a single T1 line to headquarters can have a backup 4G router. The floating static route pointing to the 4G router ensures that if the T1 fails, the store's point-of-sale systems and inventory management continue to work over the cellular connection, without any manual intervention. This is critical for business continuity.

Floating static routes are also essential in dual-homed internet connections. Many organizations have two internet service providers (ISPs) for redundancy. They may use BGP to advertise their public IP ranges, but BGP can be complex to configure and manage, especially for a small IT team. Instead, they can use a floating default route pointing to the secondary ISP's gateway with a high administrative distance. If the primary ISP fails, traffic automatically shifts to the secondary ISP. This provides basic failover without the full complexity of BGP. Of course, BGP offers more granular control, but for many organizations, the floating static route is sufficient and easier to maintain.

In cloud computing environments like AWS, Azure, and Google Cloud, the concept of a floating static route translates to backup routes in virtual private cloud (VPC) route tables. For example, in AWS, you can have a route table entry pointing to an internet gateway as the primary default route, and a secondary route pointing to a NAT instance or a VPN connection with a higher prefix. While the mechanism is slightly different (prefix length vs administrative distance), the principle of a backup route that only activates when the primary is unavailable is exactly the same. Understanding floating static routes gives cloud architects a mental model for designing highly available networking in the cloud.

Finally, from a troubleshooting perspective, knowing how floating static routes behave helps network engineers diagnose unexpected routing changes. If traffic suddenly starts using a slower backup path, it might be because the primary path failed, but it could also be due to a misconfigured administrative distance that makes the backup route preferable. Understanding the interaction between administrative distances and floating static routes is a fundamental skill that appears in almost every networking job interview and certification exam. It is not just an academic concept; it is a practical tool that you will use regularly in network design, implementation, and troubleshooting.

How It Appears in Exam Questions

Exam questions about floating static routes typically fall into three categories: configuration, verification, and troubleshooting. In configuration questions, you might be given a network diagram showing a primary router connected via a WAN link to headquarters, and a backup router with a slower link. The question asks you to choose the correct ip route command to configure a floating static route that will serve as a backup only when the primary route fails. For example, 'Which command will create a floating default route that only becomes active if the OSPF-learned default route is lost?' The answer will include an administrative distance value higher than 110, such as 'ip route 0.0.0.0 0.0.0.0 192.168.1.1 120'. Some questions may ask you to identify the correct administrative distance value to use based on the routing protocols in the network. For instance, if the primary route is learned via EIGRP (AD 90), the floating static route must have an AD greater than 90, such as 95 or 100. You need to know the default AD values for common protocols: connected (0), static (1), EIGRP (90), OSPF (110), RIP (120), external EIGRP (170), and BGP (20).

Verification questions present a show ip route output and ask you to determine whether a floating static route is active or not. If you see a static route listed with an AD of 200, but there is also an OSPF route to the same network with AD 110, then the static route is not active (it is floating). The question might ask, 'Why is the static route not in the routing table?' or 'What needs to happen for the static route to become active?' The correct answer is that the OSPF route with lower AD is preferred, and the static route will only appear if the OSPF route is removed.

Troubleshooting questions often describe a scenario where traffic is suddenly using a slower backup link, and you must identify the cause. The problem might be that the primary link went down, but it could also be a misconfiguration where the administrative distance on the floating static route is set too low, making it preferred over the primary route. Alternatively, the primary route might still be in the routing table but with a higher metric due to a configuration error, causing the router to choose the static route instead. These questions test your understanding of route selection logic and the interaction between administrative distance and metric. Sometimes the question might involve IP SLA tracking: a router is configured with a floating static route that is tracked by an IP SLA probe. If the probe fails, the route is withdrawn. The question may ask you to interpret debug or show commands to determine why the route is not failing over as expected.

Another common pattern is a multiple-choice question that lists four configurations and asks which one will result in a working floating static route. You need to check that the administrative distance is correctly set, that the next-hop address is reachable, and that the route is pointing to the correct destination network. Watch out for distractors where the administrative distance is the same as the primary route or lower. Also, some questions test whether you understand that a floating static route can be used for a specific subnet, not just a default route. For example, you could have a floating static route to 10.1.1.0/24 with AD 150 that only activates if the OSPF route to that subnet fails.

In cloud exams like AWS SAA, questions might present a VPC route table with two entries: one pointing to an internet gateway and one pointing to a NAT instance. The question asks which route will be used for traffic to 0.0.0.0/0, and you need to understand prefix length and route priority. While they don't use the term 'floating static route', the concept is the same. For Azure AZ-104, you might be shown a route table with two custom routes to the same destination prefix, one with priority 100 and one with priority 200. The question asks which one is active. The answer is the one with lower priority (100). These questions test your understanding of backup route concepts across different platforms.

Practise Floating static route Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A small law firm has an office in a downtown building. They rely on a fiber internet connection for all their work: email, cloud document editing, video calls with clients, and access to a central server at their headquarters across town. The fiber connection is fast and reliable, but one day a construction crew accidentally digs up the fiber cable and the connection goes down. The firm's IT manager, Maria, has planned for this. She configured a backup 4G LTE router that connects to the cellular network. The backup is slower and has data caps, but it keeps the office running. How does the network know to switch? Maria configured a floating static route. She set up the router to learn the path to headquarters via OSPF from the fiber link. That OSPF route has an administrative distance of 110. She then added a static default route pointing to the 4G router's IP address, but she gave it an administrative distance of 200. Because 200 is higher than 110, the static route never appears in the routing table as long as the OSPF route is there. When the fiber link goes down, the OSPF neighbor disappears, and the OSPF route is removed from the routing table. The router then checks for any other route to the destination. It sees the static route with AD 200 and installs it. Now all traffic destined to the internet and headquarters goes through the 4G router. The office is back online, though slower. Maria receives an alert and starts working with the fiber provider to fix the cable. Once the fiber is restored, OSPF re-establishes its neighbor relationship, the OSPF route with AD 110 comes back, and the router automatically removes the static route with AD 200. Traffic shifts back to the fiber link. The whole process is automatic and requires no manual intervention. This is a classic floating static route scenario. Without it, Maria would have had to log in to the router and manually change the routing configuration every time the fiber failed. With the floating static route, the network is resilient.

Now consider a variation: Maria also has a third backup, a satellite internet link, but it is very expensive and slow. She configures a second floating static route with AD 250 pointing to the satellite modem. If both fiber and 4G fail, the satellite takes over. This layered approach ensures maximum uptime. In the real world, many branch offices use exactly this kind of tiered failover with floating static routes. The key is that the administrative distance values must be carefully chosen so that the backup routes do not interfere with each other. The lowest AD is the most preferred primary, then the next higher is the first backup, and so on. This scenario is often used in CCNA and Network+ exam questions, where you must determine the correct AD values for a given set of primary and backup links.

Common Mistakes

Setting the administrative distance of the floating static route lower than that of the primary dynamic route.

The router always prefers the route with the lowest administrative distance. If the floating static route has a lower AD than the primary route, it will become the active route even when the primary is available. This defeats the purpose of having a backup and may cause suboptimal routing or even blackholing traffic if the backup path is not designed for full-time use.

Always set the floating static route's AD higher than the primary route's AD. For example, if the primary route is OSPF (default AD 110), set the floating route to 120 or higher.

Forgetting to include the administrative distance parameter in the static route command, so it defaults to 1.

A static route without an AD specified defaults to AD 1. This is lower than most dynamic routing protocols (EIGRP 90, OSPF 110, RIP 120). Therefore, the static route will always be preferred over those dynamic routes, making it the primary route instead of a backup. This is one of the most common configuration errors.

Explicitly set the administrative distance when configuring a floating static route. For example: ip route 0.0.0.0 0.0.0.0 192.168.2.1 200. The 200 at the end ensures it only acts as a backup.

Assuming a floating static route will automatically fail over even if the next-hop is still reachable via another path.

The floating static route's activation depends on the primary route being removed from the routing table. If the primary route is removed but the router can still reach the floating route's next-hop via some other interface, the floating route may be installed. However, the router does not check whether the backup path is actually functional beyond basic reachability. It is possible that the floating route directs traffic to a dead end if the backup interface is down but the next-hop IP is still reachable from some other path (e.g., through the primary link itself, creating a loop).

Combine the floating static route with a tracking mechanism like IP SLA or interface tracking to ensure the backup path is verified as operational before the route is installed.

Using the same administrative distance for the floating static route as the primary route.

When two routes have the same administrative distance, the router compares their metrics. If the metrics are also equal, the router may load-balance traffic across both paths, or choose one based on other criteria like longest prefix match. The floating static route will not behave as a pure backup; instead, both routes may be used simultaneously, causing potential issues if the backup path is slower or metered.

Assign a unique, higher administrative distance to the floating static route that is clearly greater than the primary route's AD and not equal to any other route's AD in the routing table.

Configuring a floating static route to a destination that is more specific (longer prefix) than the primary route.

The router uses the longest prefix match (most specific route) first, regardless of administrative distance. If the floating static route points to a more specific subnet than the primary route, it will always be preferred for traffic to that subnet, even if its AD is higher. For example, if the primary default route is 0.0.0.0/0 via OSPF and the floating route is 0.0.0.0/0 via static with higher AD, that works. But if you configure a floating route to 10.1.1.0/24 with AD 200 and there is an OSPF route to 10.1.0.0/16 with AD 110, the more specific /24 route will be used for traffic to 10.1.1.0/24, making it the primary instead of backup.

Ensure that the prefix length (subnet mask) of the floating static route matches the primary route's prefix length for the same destination. For default routes, always use 0.0.0.0/0.

Exam Trap — Don't Get Fooled

{"trap":"A CCNA question gives a show ip route output showing a static route with AD 120 and an OSPF route with AD 110 for the same destination. The question asks, 'Why is the static route not in the routing table?' The trap is that the candidate might think the static route is missing because it was misconfigured.

In reality, the static route is present in the configuration, but it is floating (inactive) because the OSPF route has a lower AD and is preferred. The output may only show active routes, so the static route is not listed. The candidate needs to understand that a route can exist in the configuration but not be installed in the routing table."

,"why_learners_choose_it":"Learners often assume that if a static route is configured, it will appear in the routing table. They forget about administrative distance and route selection. They may think that the route is missing due to a syntax error or because the next-hop is unreachable.

Alternatively, they may mistakenly believe that the router uses both routes simultaneously.","how_to_avoid_it":"Always remember that the routing table only contains the best routes (lowest AD and metric). A configured static route will not appear if a better route exists.

When verifying routing, use 'show ip route' to see active routes and 'show running-config' or 'show ip route static' to see configured static routes. Understand that a floating static route is intentionally not present when the primary is operational. The exam trap exploits the natural assumption that all configured routes are active."

Commonly Confused With

Floating static routevsStatic route (default)

A standard static route has an administrative distance of 1 by default, making it highly preferred over almost all dynamic routes. A floating static route is a static route configured with a higher administrative distance so that it is LESS preferred than dynamic routes. Both are manually configured, but the floating version is designed to be a backup while the regular static route is designed to be the primary or to override dynamic learning.

If you need a route that always takes precedence over OSPF, use a regular static route (AD 1). If you need a route that only kicks in when OSPF fails, use a floating static route (AD 120).

Floating static routevsDynamic route

A dynamic route is learned automatically via a routing protocol like OSPF, EIGRP, or BGP. The router discovers paths through neighbor exchanges and updates. A floating static route is a manual, static entry that does not change unless the network engineer modifies it. The floating static route becomes active only when the dynamic route disappears, acting as a failover mechanism.

In a network, OSPF dynamically finds the best path to a destination. If that path fails, a floating static route (manually added) takes over so traffic continues.

Floating static routevsPolicy-based routing (PBR)

Policy-based routing allows you to manipulate traffic forwarding based on attributes like source IP, packet size, or protocol, overriding the destination-based routing table. A floating static route is strictly destination-based and uses administrative distance to create a failover. PBR is more flexible but more complex, while a floating static route is simple and uses standard routing table logic.

If you want all traffic from the sales department to use a specific link regardless of destination, use PBR. If you want all traffic to use a backup link only when the primary fails, use a floating static route.

Floating static routevsLoad balancing (equal-cost multipath)

Equal-cost multipath (ECMP) occurs when multiple routes to the same destination have the same administrative distance and metric. The router then load-balances traffic across these paths. A floating static route is intentionally given a higher AD so that it is NOT used until the primary route fails. ECMP uses all paths concurrently; floating static uses one at a time, with a clear primary and backup.

Two OSPF routes with same cost: ECMP load-balances. One OSPF route (primary) and one static route with higher AD: the static is a floating backup, not load-balanced.

How Administrative Distance Creates a Floating Static Route

A floating static route is a static route that is configured with a higher administrative distance (AD) than the primary route. The administrative distance is a measure of route trustworthiness, ranging from 0 to 255, where a lower value indicates a more reliable route. For example, a directly connected route has an AD of 0, OSPF routes have an AD of 110, and a standard static route defaults to an AD of 1.

By setting the AD of a static route to a value higher than the primary dynamic or connected route, the static route becomes "floating", it remains inactive in the routing table unless the primary route fails. When the primary route is removed due to link failure or routing protocol convergence, the floating static route emerges as the new best path. This mechanism ensures backup connectivity without requiring complex dynamic routing protocols.

In exam contexts, you must recognize that a floating static route does not appear in the routing table under normal conditions; it only appears when the primary route disappears. For example, a network administrator may configure an OSPF-learned route with AD 110 for a critical subnet, and a floating static route with AD 130 pointing to a slower backup link. If the OSPF route is lost, the router installs the floating static route and traffic begins flowing over the backup path.

This technique is commonly used in branch office and WAN designs where reliability is critical but cost must be managed. Understanding AD values is essential for the CCNA and Network+ exams, as they test your ability to predict which route will be used when multiple paths exist. The floating static route provides a simple, predictable failover mechanism that does not rely on routing protocol timers, making it faster to converge in some scenarios.

You should also note that the floating static route must be configured with an explicit next-hop IP address rather than an exit interface to ensure reachability checks work correctly. When the next-hop becomes unreachable, the route is removed from the routing table. Overall, mastering the concept of administrative distance and its application to floating static routes is a fundamental skill for any network professional.

Configuring and Verifying Floating Static Routes on Cisco IOS

Configuring a floating static route on a Cisco IOS device involves adding a static route with a manually specified administrative distance. The standard syntax is 'ip route [destination-network] [subnet-mask] [next-hop-ip] [administrative-distance]'. For example, to create a floating backup route to 192.

168.10.0/24 via 10.0.0.2 with AD 130, you would use: 'ip route 192.168.10.0 255.255.255.0 10.0.0.2 130'. The primary route might be learned via OSPF (AD 110) or be directly connected.

After configuration, verification is performed using commands such as 'show ip route' and 'show ip route static'. In the routing table, you will see the primary route with its lower AD; the floating static route will be absent until the primary fails. To test the failover, you can shut down the primary interface or remove the primary route.

The 'show ip route' output will then display the floating static route, confirming that it is now active. The 'show ip route 192.168.10.0' command shows the specific route details, including the AD and next hop.

In exam questions, you are often asked to identify the correct configuration command or to interpret routing table output to determine which route is active. For Network+ and CCNA, expect scenario-based questions where you must choose the AD value that ensures the static route is used only as a backup. For example, if the primary route uses OSPF (AD 110), the floating static route must have an AD greater than 110, such as 120 or 130.

A common mistake is using an AD equal to or lower than the primary route, which would cause the static route to be preferred over the dynamic one. It is also important to note that floating static routes work with both IPv4 and IPv6. The IPv6 equivalent is 'ipv6 route [prefix/prefix-length] [next-hop-ip] [AD]'.

Verification for IPv6 uses 'show ipv6 route'. Another verification method is to use 'traceroute' or 'ping' from the router to confirm that traffic is flowing via the backup path when the primary is down. For exam preparation, practice configuring floating static routes in a lab environment to solidify your understanding of the relationship between AD values and route selection.

Remember, the floating static route is a simple yet powerful tool for redundancy, and its correct configuration is a common topic in certification exams.

Failover Behavior and Convergence of Floating Static Routes

Floating static routes provide failover without the complexity of dynamic routing protocols. When the primary route fails, the router must detect the failure and then install the floating static route. The detection mechanism depends on how the primary route is learned.

For directly connected routes, failure is detected when the interface goes down. For dynamic routes (e.g., OSPF, EIGRP), failure is detected through routing protocol timers (hello/dead intervals) or interface state changes.

Once the primary route is removed from the routing table, the router immediately evaluates its remaining routes. The floating static route, with its higher AD, will be installed if a better route (lower AD) does not exist. This installation happens almost instantaneously, often within milliseconds of the routing table update.

The convergence time is therefore limited by the failure detection time, not the route installation itself. In contrast, dynamic routing protocols may take seconds to converge due to hold-down timers or SPF calculations. This makes floating static routes ideal for scenarios where rapid failover is critical, such as in VoIP or real-time applications.

However, one drawback is that floating static routes do not automatically fall back when the primary route recovers. Once the primary route is restored, the router will compare AD values and prefer the lower AD, so the floating static route is automatically removed and the primary route re-installed. This is true if the primary route is dynamically learned and the router receives the update.

If the primary route is static with a lower AD, no such re-installation occurs because the static route is configured manually; but in typical use, the floating static route is a backup to a dynamic route. In exam questions, you may be asked about the convergence timeline or how to optimize failover. For example, using a fast hello timer in OSPF can reduce detection time, making the combined failover time smaller.

Network+ and CCNA exams often include questions that ask what happens to a floating static route when the primary route is restored. The answer is that the floating static route is suppressed because the router now has a route with a lower AD. Understanding this failover and fallback behavior is crucial for designing resilient networks.

You should be aware that floating static routes can be used with multiple backup paths by configuring multiple static routes with different AD values. The router will install the one with the lowest AD among the backups when the primary is lost. This layered approach provides graceful degradation of connectivity.

Exam Tips and Common Pitfalls for Floating Static Routes

Certification exams from CompTIA (Network+, Security+), Cisco (CCNA), Microsoft (AZ-104), and AWS (SAA) frequently include questions about floating static routes. The most common exam tip is to remember that the administrative distance of a floating static route must be higher than that of the primary route. For instance, if the primary route is an OSPF route with AD 110, a floating static route should have AD 120 or higher.

Some exams test the default AD values: static route default AD is 1, OSPF is 110, EIGRP is 90, BGP is 20 (eBGP) or 200 (iBGP). You must know these values to correctly set the floating static route. Another pitfall is confusing the floating static route with a standard static route.

A floating static route does not appear in the routing table under normal operation, while a standard static route (AD 1) always appears if the next hop is reachable. In exam simulation questions, you may be shown a routing table and asked why a particular route is missing, the answer could be that it is a floating static route configured with a higher AD and the primary route is still active. Be careful with the next-hop IP address.

If the next hop becomes unreachable, the router will remove the floating static route from the routing table even if the primary route is also down. This can lead to total loss of connectivity if the backup next hop is also unreachable. Some exams test this by presenting a scenario where both the primary and backup links fail, and ask what happens to the routing table.

Another exam trick involves IPv6 floating static routes: the syntax is similar, and the same AD principles apply. For Security+, floating static routes may be mentioned in the context of secure network design, where a backup route ensures connectivity during DDoS mitigation or link failure. For AWS SAA, the concept translates to configuring a static route in a VPC route table with a higher priority (equivalent to higher AD) for a backup VPN connection.

In Azure AZ-104, you might set a higher metric for a static route in a network virtual appliance scenario. The underlying principle is universal: the path with the lower metric or AD wins. Finally, remember that floating static routes are not dynamic, they do not automatically adapt to changes in network topology beyond the initial failure detection.

They are ideal for simple backup paths but not for complex multi-vendor environments. By internalizing these exam tips and avoiding common mistakes, you will be well-prepared for any question involving floating static routes.

Troubleshooting Clues

Floating static route not becoming active after primary failure

Symptom: After shutting down the primary interface, 'show ip route' does not show the floating static route, and traffic is lost.

The floating static route's next-hop IP address may be unreachable. Even if the primary route is gone, the router checks reachability of the next-hop address; if it is not in the routing table or is unreachable, the route is not installed.

Exam clue: Exams present a scenario where a backup static route does not appear in the routing table. The correct answer is often that the next-hop IP is not reachable or the interface is down.

Floating static route preferred over a dynamic route

Symptom: The static route is always active even though a dynamic route (OSPF) is available, causing suboptimal routing.

The administrative distance of the static route is set too low, e.g., 100 instead of 130. Since OSPF has AD 110, a static route with AD 100 would be preferred. The AD must be higher than the dynamic route's AD.

Exam clue: CCNA questions show a routing table with an unexpected static route active. The fix is to configure the static route with an AD higher than 110.

IPv6 floating static route not functioning

Symptom: IPv6 routing table does not show the backup route after IPv6 primary route is lost.

The IPv6 next-hop address may not be reachable, or the static route might have been configured with an interface name instead of an IP address, which can cause issues if the interface goes down. Also check if IPv6 unicast routing is enabled.

Exam clue: In exams, IPv6 troubleshooting often involves checking that IPv6 routing is enabled globally and that the next-hop is reachable via an IPv6 route.

Floating static route installed but traffic not using it

Symptom: Ping succeeds but traceroute shows traffic following a different path, or no traffic at all.

There could be another route with a lower metric in the routing table, or a policy-based route that overrides the routing table. Also, ensure the next-hop device has a return route to the source.

Exam clue: This is a classic exam question: 'Why is traffic not using the backup route?' The answer may involve a route with lower AD or a missing return route.

Primary route recovered but floating static route remains

Symptom: After restoring the primary interface, the routing table still shows the floating static route as active.

This can happen if the primary route is also a static route with a lower AD but the route is not re-added because the configuration was changed. Usually, dynamic routes auto-recover; but if the primary route is from a routing protocol that hasn't reconverged, the floating route may persist.

Exam clue: Exam questions may ask what happens when the primary link comes back. The expected answer is that the primary route (with lower AD) replaces the floating route, but only if it appears in the routing table.

Floating static route uses exit interface and not next-hop IP

Symptom: Configuration shows 'ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1 200' but the route never becomes active.

When using an exit interface, the route is considered directly connected and the router does not check next-hop reachability. However, if the interface goes down, the route is removed. Using a next-hop IP is more reliable for floating routes because the router can verify the path.

Exam clue: CCNA exams often test the difference between specifying an exit interface vs. a next-hop IP. The floating route should use a next-hop IP for proper failover.

Multiple floating static routes with same AD

Symptom: Router shows two floating static routes for the same destination, both with AD 130, causing load balancing or installation issues.

If multiple static routes have the same AD, the router may load balance traffic across both (if equal-cost) or choose one based on other criteria. This can lead to unpredictable behavior if one of the next hops is not available.

Exam clue: This tests the concept of equal-cost multi-path (ECMP). In exams, you may be asked to ensure only one backup route is used, requiring different AD values for each backup.

Learn This Topic Fully

This glossary page explains what Floating static route means. For a complete lesson with labs and practice, see the topic guide.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Quick Knowledge Check

1.A floating static route is configured with an administrative distance of 130. The primary route is learned via OSPF with AD 110. What happens when the OSPF route fails?

2.Which command creates a floating static route that serves as a backup default route for IPv4?

3.A network engineer observes that a floating static route configured with AD 150 is not appearing in the routing table even after the primary OSPF route disappears. What is the most likely cause?

4.What is the purpose of setting a higher administrative distance on a floating static route?

5.In an exam scenario, a router has an OSPF-learned route to 10.0.0.0/16 with AD 110. The administrator adds a floating static route 10.0.0.0/16 via 172.16.0.1. What AD value will cause the static route to become active only if the OSPF route fails?

6.After a primary link failure, a floating static route is installed. However, traffic is still not reaching the destination. What could be the issue?