IP SLA Tracking for Routes
From Internetworkpro
ip sla monitor 1 type pathEcho protocol ipIcmpEcho 10.1.1.1 frequency 5 ! ip sla monitor schedule 1 start-time now track 1 rtr 1 ip route 0.0.0.0 0.0.0.0 10.1.1.1 track 1
Dummy loopback to provide us with something to ping to show the route being installed
R6#show ip route
*Mar 28 10:35:40.731: %SYS-5-CONFIG_I: Configured from console by console
*Mar 28 10:35:41.687: %LINK-5-CHANGED: Interface Loopback0, changed state to administratively down
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
R6#conf t
R6(config)#int loop 0
R6(config-if)#ip address 10.1.1.1 255.255.255.255
R6(config-if)#end
R6#
*Mar 28 10:31:15.732: %SYS-5-CONFIG_I: Configured from console by console
R6#
R6#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 10.1.1.1 to network 0.0.0.0
10.0.0.0/32 is subnetted, 1 subnets
C 10.1.1.1 is directly connected, Loopback0
S* 0.0.0.0/0 [1/0] via 10.1.1.1
R6#
Lets bring it back down
R6#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#int loop0
R6(config-if)#shut
R6(config-if)#end
R6#show ip route
*Mar 28 10:35:40.731: %SYS-5-CONFIG_I: Configured from console by console
*Mar 28 10:35:41.687: %LINK-5-CHANGED: Interface Loopback0, changed state to administratively down
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
R6#

