How to enable Ping(ICMP) on Azure

前端 未结 4 872
礼貌的吻别
礼貌的吻别 2021-01-12 03:47

In Windows Azure role, I cannot ping out

D:\\Users\\foglight>ping www.google.com

Pinging www.l.google.com [209.85.143.104] with 32 bytes of data:
Request         


        
4条回答
  •  长情又很酷
    2021-01-12 04:40

    I also had problems to do traceroutes from my azure VM and to ping it. Just wanted to let you know, that after you have a public IP assigned to the VM (which is in many cases the default), you also need to add ICMP Rules to your network security groups (NSG) (if you have any, which you should).

    If you have a NSG on the vnet and a NSG on the VM network interface, you should create 4 rules that allow ICMP (vnet-in, vnet-out, vm-in, vm-out). Selecting "Any" as protocol, will not work. The default rule for internet access seems to be not sufficient. You need to select ICMP. "Any" seems to be only UDP+TCP. I set the source and destination port to "*" (not sure if it even has any effect if ICMP is selected).

    After that and a little wait (~1-2 min), I could ping and trace in every direction :)

提交回复
热议问题