In this example we’ll connect virtual networks located in different Azure regions.This connections is called VNet to VNet.VNet-to-VNet connectivity utilizes the Azure virtual gateways to connect two or more virtual networks together.
Creating Gateway subnet-West Europe
Before deploying Virtual Network Gateway we need first to deploy gateway subnet
In subnet properties click + Gateway subnet
Creating Virtual network gateway
In Azure portal click new resource-Virtual network gateaway
Gateway type:VPN
VPN Type:route-based
Creating virtual network in North Europe
Creating Gateway subnet
Defining subnet
Creating Virtual Gateway
In similar way Virtual Network gateway is created in west europe (gateway subnet-10.0.2.0/24)
Creating virtual machine in North Europe region
VM is created in North Europe and assigned to vnet-northeurope network
Creating VM in West Europe
similar for Virtual machine in West Europe
Creating VNet peering
in NorthEurope Virtual network gateway click Connections-Add
Specify shared key and opposite network gateway-Virtual network gateway from west-europe (as second gateway)
Create VNet peering from opposite side-from west europe virtual gateway click-connections-add connection-for second virtual gateway specify north europe virtual gateway-same shared key
On both sides, on Virtual network gateway-under connections,connection state should be connected
Connection from north europe VM to VM in west europe using private IP and vice-versa
[…] Create Virtual Network Gateway (details here) […]
LikeLiked by 1 person
[…] Nous pouvons connecter un VNET a un autre VNET via un Virtual Network Peering ou un Azure VPN Gateway. […]
LikeLike