思科交换机C3560的SLA+静态路由切换

一、配置
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 //查看路由是否切换

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容