windows 为什么我无法从本地 PC ping Azure VM

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35703638/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:28:59  来源:igfitidea点击:

Why I can't ping Azure VM from my local PC

windowsazurepingazure-virtual-machine

提问by Vnuuk

I have a Windows VM on Azure and I don't understand why my ping times out. I found a probable reason: on Azure portal I see public IP "40.127.163.20", but inside VM when I do ipconfig I see different IP that is strange.

我在 Azure 上有一个 Windows VM,但我不明白为什么我的ping 超时。我找到了一个可能的原因:在 Azure 门户上,我看到公共 IP“40.127.163.20”,但是在 VM 中,当我执行 ipconfig 时,我看到了不同的 IP,这很奇怪。

Do you have any ideas?

你有什么想法?

enter image description here

在此处输入图片说明

回答by Martin Beeby

ICMP protocol is not permitted through the Azure load balancer (inbound or outbound) which means that you can't do a simple ping to your VM. There is a : user voice request for this to be enabled here.

不允许通过 Azure 负载平衡器(入站或出站)使用 ICMP 协议,这意味着您无法对 VM 执行简单的 ping 操作。有一个 :用户语音请求在这里启用。

This blog heredescribes how you can use a port ping as an alternative.

此处的这篇博客描述了如何使用端口 ping 作为替代方法。

There is some documentation on how to set up an Instance Level IP, which would circumnavigate the load balancer and give direct communication to the Virtual Machine, but I haven't tried this approach (I'm giving it a go right now, will report back)

一些关于如何设置 Instance Level IP 的文档,它可以绕过负载均衡器并直接与虚拟机通信,但我还没有尝试过这种方法(我现在正在尝试,将报告背部)