一、配置
BGQ-C3560-T(config)#ip sla 10
BGQ-C3560-T(config-ip-sla)#icmp-echo 3.3.3.3 source-ip 1.1.1.1
BGQ-C3560-T(config-ip-sla-echo)#frequency 10
BGQ-C3560-T(config-ip-sla-echo)#threshold 3
BGQ-C3560-T(config-ip-sla-echo)#timeout 2000
BGQ-C3560-T(config)#ip sla schedule 10 life forever start-time now //现在启动
BGQ-C3560-T(config)#track 10 ip sla 10 reachability //配置监测机制
BGQ-C3560-T(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 track 10
BGQ-C3560-T(config)#ip route 0.0.0.0 0.0.0.0 2.2.2.2 10
BGQ-C3560-T#show ip sla statistics
BGQ-C3560-T#show track //若是显示down,则探测超时
三、测试,当探测IP超时时
show ip route | in 0.0.0.0 //查看路由是否切换