Forum Discussion
Muhammad Ausaf Ali Yousaf
Jul 15, 2017Copper Contributor
How to connect two VM's on Azure?
Dear Memebrs; I have the following setup in Azure Cloud: (CentOS-trust VM) -------(10.0.2.0/24)----PA-Vm------(10.0.1.024)-----(CentOS-Untrust VM) All VM's have a seperate Mgmt Network w...
- Jul 24, 2017
Do you mean that Ping does not work ?
i notice that both VM's have a 10.x.x.x/24 would they happen to be in the same VNET 10.0.0.0/8 or /16 ?
Unless you configured DNS for the public facing MGMT ip's then no, they would never use that address, but if they are on each thier own VNET, then you have to enable peering or VPN between the 2 sites, but here you may have overlapping VNET's.
perhaps you could provide some screen dumps, VNET and NIC's
On a side note, if you must use public facing ip's (VPN would be better) then remeber to use strict NSG's to prevent unwanted attacks.
kasunsjc
Jul 29, 2017Iron Contributor
Hi,
Can we know the address space of the VNET so we can assist with a better anzwer. If both are in the same VNET then ping should work unless you modified the NSG default rules. As Kent mentioned the VMs stayed at two diferent VNETs then we have to create VNET peering withe each other.
You can use Network watcher service to verify the network conectivity troubleshoting
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview
Thanks
- Muhammad Ausaf Ali YousafJul 29, 2017Copper Contributor
Dear Members;
Thank you so much for replying, i have managed to connected them, just needed a route with Virtual Machine as Next hop....
- Kent GaardmandJul 29, 2017Steel ContributorGlad to hear it, but that should not have been necessary. If you want to insure best practice, feel free to provide more information and we will make sure you are on track
- r_gaurangJan 28, 2020Copper Contributor
Hi ,
I am in a situation where I have created 2 Virtual Machines associated with 2 different sub nets in a Virtual Network. When I try to ping the VMs form each other its getting times out.
Please guide me how to solve this