如果將閘道設定為具有靜態路由的合作夥伴閘道,並將 ICMP 回應程式設定為追蹤這些路由的可連線性,則會提供 debug.py 命令來指出啟動或關閉狀態,如下所示:
vcadmin@vcg1-example:~$ sudo /opt/vc/bin/debug.py --icmp_monitor { "icmpProbe": { "cTag": 0, "destinationIp": "0.0.0.0", "enabled": false, "frequencySeconds": 0, "probeFail": 0, "probeType": "NONE", "probesSent": 0, "respRcvd": 0, "sTag": 0, "state": "DOWN", "stateDown": 0, "stateUp": 0, "threshold": 0 }, "icmpResponder": { "enabled": false, "ipAddress": "0.0.0.0", "mode": "CONDITIONAL", "reqRcvd": 0, "respSent": 0, "state": "DOWN" } } vcadmin@vcg1-example:~$
啟用 ICMP 回應程式時,關閉狀態表示沒有任何 Edge 連線至閘道。