Hi,
Your Configuration will be like:
R1(config)# ip sla 1
R1(config)# icmp-echo 8.8.8.8 source-interface XXXXX
R1(config)# timeout 1000
R1(config)# threshold 3
R1(config)# frequency 2
The ICMP Echo probe sends an ICMP Echo packet to next-hop IP 8.8.8.8 every 2 seconds, as defined by the “frequency” parameter.
Timeout sets the amount of time (in milliseconds) for which the Cisco IOS IP SLAs operation waits for a response from its request packet.
Threshold sets the rising threshold that generates a reaction event.
Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!