I want to configure a failover link to my cache server with Cisco policy routing. So I attempted to create an ip sla monitor. here is the syntax in the cisco router (there is possibility of being wrong words in parameters but here I just wanted to show the styles):
R1(config)# ip sla monitor 1 type tcpConnect destip 10.10.10.2 destport 1010 timeOut 30 frequency 30 R1(config)# ip sla monitor 1 schedule life forever starttime now
and then created a track watching for that monitor and use it on routing. But every time I check out the ip sla monitor 1 statistics like this it fails. While I can telnet the 10.10.10.2:1010 with router!
R1# sh ip sla monitor statistics 1 <some stuff here> last operation return code: No connection number of success: 0 number of failures: 66
and the track return me the link is down.