我想用思科策略路由configuration到我的caching服务器的故障转移链接。 所以我试图创build一个ip sla监视器。 这里是思科路由器的语法(有可能是错误的单词在参数,但在这里,我只是想显示样式):
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
然后创build一个监视该监视器的轨道并在路由中使用它。 但每次我看看这个ip sla monitor 1这样的统计信息都会失败。 虽然我可以用路由器telnet 10.10.10.2:1010!
R1# sh ip sla monitor statistics 1 <some stuff here> last operation return code: No connection number of success: 0 number of failures: 66
和轨道返回我的链接是closures的。
有任何想法吗?
你不需要使用控制协议。
type tcpConnect destip 10.10.10.2 destport 1010 control disable
IP SLA使用控制协议通知IP SLA响应者暂时启用目标端口。 此操作允许响应方回复TCP连接操作。 在这个例子中,因为目标不是一个路由器,并且使用一个众所周知的TCP端口,所以不需要发送控制消息。 http://www.cisco.com/en/US/docs/ios/12_4/ip_sla/configuration/guide/hstcpc.html