我在 Azure 上有一个 Windows VM,但我不明白为什么我的 ping 超时。 我发现了一个可能的原因:在Azure门户上,我看到公共(public)IP“40.127.163.20”,但在VM内部,当我执行ipconfig时,我看到了奇怪的不同IP。
你有什么想法吗?
最佳答案
Azure 负载均衡器(入站或出站)不允许使用 ICMP 协议(protocol),这意味着您无法对 VM 执行简单的 ping 操作。有一个:user voice request for this to be enabled here.
This blog here描述如何使用端口 ping 作为替代方案。
有some documentation on how to set up an Instance Level IP ,这将绕过负载均衡器并直接与虚拟机通信,但我还没有尝试过这种方法(我现在正在尝试,将报告回来)
关于windows - 为什么我无法从本地 PC ping Azure VM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35703638/