3

I created two Virtual Machines on Window Azure. One vm is connected with remote desktop and from there I try to ping another vm using its Public virtual IP (VIP)/Internal IP Address. It can not be connected and give me a message "request timed out".

My question is do I need to create virtual network for those two vms to be able to connect each other?

Thanks for your opinions and suggestions.

2
  • you should add what you've tried so far to resolve the issue yourself, and more information about the setup. Jan 21, 2015 at 12:31
  • This question, to me, is perfectly valid and has a legitimate answer (which I posted) explaining the issue with ping and details around the need for a vnet to talk between VMs. Why would this be off-topic? Jan 25, 2015 at 1:42

2 Answers 2

3

Your question talks about two things: pings and connectivity.

Pings are not supported through the load balancer, which is why your one VM can't ping the other through its public IP address (ICMP is not supported with inbound or outbound traffic through the load balancer). Ping works on the internal network (either within the same cloud service or across a vnet).

Now on to connectivity: You can open both TCP and UDP ports externally, allowing traffic to then flow into a VM (on the same or different port). As long as these external endpoints are opened, you can then connect via those endpoints. You can also apply access control lists (ACLs) to the endpoints, to filter traffic based on inbound IP addresses. So... from the VM you RDP'd into: while you cannot ping your 2nd machine via its public IP address, you can connect via TCP- or UDP-based protocols (telnet, ssh, a database connection, whatever).

If you go the VNet route, then each VM in the VNet can connect to the other VMs in the VNet without worrying about external endpoints being open. Further, since your traffic would no longer be routing through the load balancer, you'd have other protocols (such as ICMP for ping) working.

0

This should give more information on using Pings in Azure. Try using a TCP based Ping tool versus an ICMP ping.

If you are using the DIP to communicate, the VMs need to be in the same Hosted Service or VNET. If you are using the VIP, so such configuration is necessary as long as your VMs can access the Internet.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .