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
Requirements
- 1R1 has the primary default route 0.0.0.0/0 through ISP-A (198.51.100.2)
- 2The floating default route through ISP-B (203.0.113.2) is configured with administrative distance 5
- 3While Gi0/0 is up, the routing table has only the route through ISP-A
- 4If Gi0/0 goes down, the default route moves to ISP-B
- 5R1 reaches the test server 192.0.2.80
- 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.