Cisco IOS Router Basic IP SLA Example with Floating Static
!----------------------------------------------------------------- ! IOS Router Basic IP SLA with a Floating Default Static Gateway !----------------------------------------------------------------- ! ip sla [[ip-sla-id]] icmp-echo [[primary-gateway-ip]] source-interface [[primary-interface]] threshold 3 frequency 5 ! track 101 ip sla [[ip-sla-id]] reachability ! ip route 0.0.0.0 0.0.0.0 [[primary-gateway-ip]] track 101 !-- Metric needs to be any number greater that 1. (i.e. 5 as an example) ip route 0.0.0.0 0.0.0.0 [[secondary-gateway-ip]] [[metric]] ! ip sla schedule [[ip-sla-id]] life forever start-time now !



ip-sla-id:
primary-gateway-ip:
primary-interface:
secondary-gateway-ip:
metric:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: