Reputation: 126
I created two virtual networks in azure using the routeable private adress configurations
vnet1: 172.16.10.0/24(vsubnet1) vnet2: 172.16.20.0/24(vsubnet2)
I Created two virtual machines by connecting to the above vsubnets through NIC.
Network security Group has been defined to allow all the traffic and no additional routes are created. How can I approach this connectivity between these two virtual machines without creating VPN/Express route as given in Azure documentation
In Openstack we have the option of creating the interfaces that connect to ports of multiple virtual networks where as in azure, the NIC configuration is limited only to one virtual network which vm connects to.
Upvotes: 0
Views: 1343
Reputation: 13954
You can use Vnet peering to connect two vnets.
For now, Peering virtual networks in the same region is generally available. Peering virtual networks in different regions is currently in preview in US West Central, Canada Central, US West 2, Korea South, UK South, UK West, Canada East, India South, India Central, and India West
.
Please make sure your virtual networks must have non-overlapping IP address spaces.
Vnet peering works like this:
More information about requirements of vnet peering, please refer to this article.
Here is the official article about enable vnet peering via Azure portal, please refer to it.
Upvotes: 1
Reputation: 491
You can use Azure Virtual neteork peering. IT enables you to seamlessly connect two Azure virtual networks. Once peered, the virtual networks appear as one, for connectivity purposes. The traffic between virtual machines in the peered virtual networks is routed through the Microsoft backbone infrastructure, much like traffic is routed between virtual machines in the same virtual network, through private IP addresses only.
For more information refer: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview
Upvotes: 1