ip sla 1
tcp-connect 192.168.0.1 23 control disable (use telnet port)
ip schedule 1 start-time now life forever
sh ip sla stat
ip sla
tcp-connect 192.168.0.1 5555 source-ip 192.168.0.2 control enable (standard port)
R2
ip sla responder
***********************************
ip sla 2
icmp-echo 192.168.0.2 source-ip 192.168.0.1
freq 5
ip schedule 2 start-time now life forever
can use with the track object to change routes
track 2 ip sla 2
sh track
*************************************
udp-echo
ip sla 3
udp-echo 192.168.0.2 5000
freq 5
ip schedule 3 start-time now life forever
R2
ip sla responder udp-echo
*************************************
ip access-list extended SLA (acl if you want to see the ef packets going up)
permit ip any any dsp ef
permit ip any any
int fa0/0
ip access-group SLA in
int s0/1
ip access-group SLA in
ip sla udp-jitter config
ip sla 4
udp-jitter 192.168.0.2 6000 g729a control enable
freq 5
ip schedule 4 start-time now life forever
show ip sla stat 1