track sample 1
!
! tracking interface if up or down
! with line-protocol
!
!
track 1 interface FastEthernet7 line-protocol
!
! create oposite of track 1
!
track 2 list boolean and
object 1 not
!
! create default route
!
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1 track 1
ip route 0.0.0.0 0.0.0.0 192.168.1.2 track 2
track sample 2
!
! create a ip sla and test for gateway
!
ip sla 1
icmp-echo 192.168.1.1
timeout 1000
threshold 2
frequency 3
ip sla schedule 1 life forever start-time now
!
!
!
track 10 ip sla 1 reachability
!
! create a route
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1.track 10