Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Ping(ICMP) on Azure

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 timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 209.85.143.104:
 Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

I google it and found some one suggest run below command, but even after run it, I still can not ping out

netsh advfirewall firewall add rule name="ICMPv6" dir=in action=allow enable=yes protocol=icmpv6

Please someone tell me the reason and how to walkaround.

like image 952
Xilang Avatar asked Mar 20 '12 08:03

Xilang


People also ask

Does ping work in Azure?

No, not by using the normal "ping"/ICMP protocol. The ICMP protocol is not permitted through the Azure load balancer. To test connectivity, we recommend that you do a port ping. While Ping.exe uses ICMP, you can use other tools, such as PSPing, Nmap, and telnet, to test connectivity to a specific TCP port.

Why can't I ping my Azure VM?

Unfortunately you can't use ping command to ping your Azure VM's public ip address, that's because it's disabled by the Azure firewall by default and according to what I've read this meant to secure azure from DDos attacks. So, how can you make your Azure VMs pingable?

How do I know if my ICMP is enabled?

Expand the Computer Configuration/Policies/Windows Settings/Security Settings/Windows Firewall with Advanced Security/Windows Firewall with Advanced Security/Inbound Rules node. From the Protocol Type: drop down list select ICMPv4 and click Customize… Check the All ICMP types radio botton and click OK.

Can you ping Azure default gateway?

Can I ping default gateway within a VNet? No. Azure provided default gateway does not respond ping. But you can use ping in your VNets to check connectivity and troubleshooting between VMs.


1 Answers

I don't believe you can do this. Traffic leaving the data center goes through the load balancer, and the load balancer only routes TCP-based traffic.

like image 136
user94559 Avatar answered Oct 12 '22 11:10

user94559