Scenario

R1 has two uplinks. Gi0/0 goes to ISP-A (198.51.100.2) and is the main link. Gi0/1 goes to ISP-B (203.0.113.2) and is the backup. The LAN is on Gi0/2 (10.37.1.0/24). Configure a default route through ISP-A. Then configure a floating static default route through ISP-B with administrative distance 5, so it stays out of the routing table while the main link works and takes over if Gi0/0 goes down. The test server 192.0.2.80 is reachable through either ISP.

Topology

R1ISP 1ISP 2

Requirements

  1. 1R1 has the primary default route 0.0.0.0/0 through ISP-A (198.51.100.2)
  2. 2The floating default route through ISP-B (203.0.113.2) is configured with administrative distance 5
  3. 3While Gi0/0 is up, the routing table has only the route through ISP-A
  4. 4If Gi0/0 goes down, the default route moves to ISP-B
  5. 5R1 reaches the test server 192.0.2.80
  6. 6Gi0/0 is switched on again after the failover test, and the primary route is back

R1 has its three interface addresses and no routes. Type ? for the commands you can use. Start with: enable

R1> show running-config

CCNA lab · about 12 min

Static routes: a primary default route and a floating backup (AD 5)

Give R1 two default routes towards two ISPs: a primary one through ISP-A, and a floating static route with administrative distance 5 through ISP-B that takes over when the primary link goes down.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

R1 has two uplinks. Gi0/0 goes to ISP-A (198.51.100.2) and is the main link. Gi0/1 goes to ISP-B (203.0.113.2) and is the backup. The LAN is on Gi0/2 (10.37.1.0/24). Configure a default route through ISP-A. Then configure a floating static default route through ISP-B with administrative distance 5, so it stays out of the routing table while the main link works and takes over if Gi0/0 goes down. The test server 192.0.2.80 is reachable through either ISP.

About 12 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What is a floating static route?

A static route with an administrative distance higher than the route it backs up. It stays in the configuration but not in the routing table, until the main route disappears.

What is administrative distance?

A number from 0 to 255 that ranks how much the router trusts a route source: connected 0, static 1, EIGRP 90, OSPF 110, RIP 120. With the same prefix, the lowest distance is installed. The metric is compared only inside one protocol.

Does the floating route work when the ISP fails but the link stays up?

No. A static route leaves the table only when its next hop becomes unreachable through the interface, for example when the link goes down. If the ISP fails behind a working link, the static route stays, and a tool such as IP SLA with route tracking is needed (beyond CCNA).

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.