Cisco IP SLA 監控 tcpConnect 失敗,但可以從路由器遠端登入主機

Cisco IP SLA 監控 tcpConnect 失敗,但可以從路由器遠端登入主機

我想使用 Cisco 策略路由配置到我的快取伺服器的故障轉移連結。所以我嘗試創建一個 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

然後為該監視器創建一個追蹤監視並將其用於路由。但每次我像這樣檢查 ip sla 監視器 1 統計數據時,它都會失敗。雖然我可以使用路由器遠端登入 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

曲目返回給我,連結已關閉。

有任何想法嗎?

答案1

您不需要使用控制協議。

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

相關內容