Ian Wilson Thu, 09/25/2008 - 11:56
User Badges:

The following example configures an IP SLA instance to send an ICMP Echo (ping) packet every 3 seconds.


Timeout is set to 1 second, and threshold is set to 2 milliseconds.


If the ICMP reply is received within 1 second (timeout value) then the IP SLA 'operation return code' is 'OK'.


If the reply is received between 2 millisecs and 1 second then OverThreshold is set.


ip sla 1

type echo protocol ipIcmpEcho 10.51.12.4 <<< Ping operation

timeout 1000 <<< Timeout in 1 sec

frequency 3 <<< Ping every 3 secs

threshold 2 <<< 2 mS threshold

request-data-size 1400

ip sla sched 1 start-time now life forever <<< Shedule operation to start now and run forever

!


Ian


2044418Puts Sat, 09/27/2008 - 02:38
User Badges:

Thanks for your reply, but I would like to verify reachability with a specific TTL (hop count). For example:


The tracker should return OK only if the host to ping is only 2 hops away, but not if it is 3 hops away. For example due to a change in one of the intermediate router's routing table.


Please let me know if this is possible. Thanks

akharmanbiz Sun, 09/28/2008 - 10:15
User Badges:

Hi,


I think no solution for ttl in ip sla monitor or if exist you must upgarde your IOS image.

Florin Barhala Mon, 10/29/2012 - 09:54
User Badges:
  • Bronze, 100 points or more

Hello,


Any new idea regarding this request? I need to monitor a connection but I have to be sure the reply comes from ONE hop distance.


I require this because the ping_server_for_ISP1  I use is reachable using both ISP and I cannot know when ISP 1 is down (I originate icmp packets from ISP1_connected_interface). Here is the config if helps anyway:


ip sla monitor 10

type echo protocol ipIcmpEcho 193.aa.bb.201 source-ipaddr 89.xx.yy.18

timeout 1000

frequency 4

ip sla monitor schedule 10 life forever start-time now


track 10 rtr 10 reachability

delay down 10 up 30

ip route 0.0.0.0 0.0.0.0 89.238.226.17 track 10

cadet alain Mon, 10/29/2012 - 10:44
User Badges:
  • Purple, 4500 points or more

Hi,

if you want to get sure the IP SLA probe is sent to first ISP then either use:

- source-interface in your IP SLA config

- configure a static host route for the destination you are probing

- configure a local PBR policy to always send the SLA probes out the interface to first ISP


I've never heard about an option for setting  TTL of ICMP echo-request for IP SLA.


Regards.


Alain



Don't forget to rate helpful posts.

Florin Barhala Mon, 10/29/2012 - 11:05
User Badges:
  • Bronze, 100 points or more

Hi Alain,


I configured IP SLA using "source-interface in your IP SLA config"; but here it is:

- ISP1_ping_server goes down and primary default route is removed from routing table

- then ISP2_default route comes in place and then ISP1_ping_server is reachable using ISP2 connection. This triggers

primary default route to get up and so on...


Any ideas?


I use IOS Version 12.4(25b).

cadet alain Mon, 10/29/2012 - 11:26
User Badges:
  • Purple, 4500 points or more

Hi,


Try of of the other 2 workarounds I proposed and tell me.


Regards.


Alain



Don't forget to rate helpful posts.

Florin Barhala Mon, 10/29/2012 - 11:56
User Badges:
  • Bronze, 100 points or more

Hi Alain,


2nd path sends me to the same result, as the static route uses 1st ISP; but when it fails the ISP1_ping_server will be reached using the DEFAULT route from the 2nd ISP.


I believe it shouldn't behave this way as long as I use the source_interface option in the ip sla configuration, nevertheless I will dig more on this issue.

cadet alain Mon, 10/29/2012 - 12:56
User Badges:
  • Purple, 4500 points or more

Hi,


no it shouldn't behave this way but having the full config could maybe help us to troubleshoot this.


Regards.


Alain



Don't forget to rate helpful posts.

Actions

This Discussion