{"id":785,"date":"2022-02-01T14:52:10","date_gmt":"2022-02-01T14:52:10","guid":{"rendered":"http:\/\/192.168.8.123\/?p=785"},"modified":"2022-02-11T11:09:55","modified_gmt":"2022-02-11T11:09:55","slug":"create-and-configure-a-microsoft-virtual-network-gateway","status":"publish","type":"post","link":"https:\/\/exceedthecloud.com\/?p=785","title":{"rendered":"Create and configure a Microsoft virtual network gateway"},"content":{"rendered":"\n<p>In this lab you will configure a virtual network gateway to connect the Exceedlabs Core Services VNet and Manufacturing VNet hosted in two separate azure region<\/p>\n\n\n\n<p>In this lab, you will:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Task 1: Create CoreServicesVnet and ManufacturingVnet<\/li><li>Task 2: Create CoreServicesTestVM<\/li><li>Task 3: Create ManufacturingTestVM<\/li><li>Task 4: Connect to the Test VMs using RDP<\/li><li>Task 5: Test the connection between the VMs<\/li><li>Task 6: Create CoreServicesVnet Gateway<\/li><li>Task 7: Create ManufacturingVnet Gateway<\/li><li>Task 8: CoreServicesVnet to ManufacturingVnet<\/li><li>Task 9: Connect ManufacturingVnet to CoreServicesVnet<\/li><li>Task 10: Verify that the connections connect<\/li><li>Task 11: Test the connection between the VMs<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Prerequisites for this labs :&nbsp;<a href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Account<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 1: Create CoreServicesVnet and ManufacturingVnet<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In the Azure portal, open the <strong>PowerShell<\/strong> session within the <strong>Cloud Shell<\/strong> pane.<\/li><li>In the toolbar of the Cloud Shell pane, click the Upload\/Download files icon, in the drop-down menu, click Upload and upload the following files <strong>azuredeploy.json<\/strong> and <strong>azuredeploy.parameters.json<\/strong> into the Cloud Shell home directory.<\/li><li>Deploy the following ARM templates to create the virtual network and subnets needed for this exercise:<\/li><\/ul>\n\n\n\n<p>code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$RGName = \"ExceedlabsResourceGroup\"\n#create resource group if it doesnt exist\nNew-AzResourceGroup -Name $RGName -Location \"eastus\"\nNew-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.json<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 2: Create CoreServicesTestVM<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure home page, using the global search type <strong>Virtual Machines<\/strong> and select virtual machines under services.<\/li><li>In Virtual Machines, select <strong>+ Create; + Virtual machine<\/strong>.<\/li><li>Use the information in the following table to create your VM.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Tab<\/strong><\/td><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Basics<\/td><td>Resource group<\/td><td>ExceedlabsResourceGroup<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual machine name<\/td><td>CoreServicesTestVM<\/td><\/tr><tr><td>&nbsp;<\/td><td>Region<\/td><td>East US<\/td><\/tr><tr><td>&nbsp;<\/td><td>Availability options<\/td><td>No infrastructure redundancy required<\/td><\/tr><tr><td>&nbsp;<\/td><td>Image<\/td><td>Windows Server 2022 Datacenter- Gen1<\/td><\/tr><tr><td>&nbsp;<\/td><td>Azure Spot instance<\/td><td>Not selected<\/td><\/tr><tr><td>&nbsp;<\/td><td>Size<\/td><td>Standard_D2s_v3 &#8211; 2vcpus, 8GiB memory<\/td><\/tr><tr><td>&nbsp;<\/td><td>Username<\/td><td>TestUser<\/td><\/tr><tr><td>&nbsp;<\/td><td>Password<\/td><td>TestPa$$w0rd!<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public inbound ports<\/td><td>Allow selected ports<\/td><\/tr><tr><td>&nbsp;<\/td><td>Select inbound ports<\/td><td>RDP (3389)<\/td><\/tr><tr><td>Disks<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Networking<\/td><td>Virtual network<\/td><td>CoreServicesVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>Subnet<\/td><td>DatabaseSubnet (10.20.20.0\/24)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public IP<\/td><td>(new) CoreServicesTestVM-ip<\/td><\/tr><tr><td>&nbsp;<\/td><td>NIC network security group<\/td><td>Basic<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public inbound ports<\/td><td>Allow selected ports<\/td><\/tr><tr><td>&nbsp;<\/td><td>Select inbound ports<\/td><td>RDP (3389)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Load balancing<\/td><td>Not selected<\/td><\/tr><tr><td>Management<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Advanced<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Tags<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Review + create<\/td><td>Review your settings and select Create<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"4\"><li>When the deployment is complete, select <strong>Go to resource<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 3: Create ManufacturingTestVM<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure home page, using the global search type <strong>Virtual Machines<\/strong> and select virtual machines under services.<\/li><li>In Virtual Machines, select <strong>+ Create; + Virtual machine<\/strong>.<\/li><li>Use the information in the following table to create your VM.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Tab<\/strong><\/td><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Basics<\/td><td>Resource group<\/td><td>ExceedlabsResourceGroup<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual machine name<\/td><td>ManufacturingTestVM<\/td><\/tr><tr><td>&nbsp;<\/td><td>Region<\/td><td>West Europe<\/td><\/tr><tr><td>&nbsp;<\/td><td>Availability options<\/td><td>No infrastructure redundancy required<\/td><\/tr><tr><td>&nbsp;<\/td><td>Image<\/td><td>Windows Server 2022 Datacenter- Gen1<\/td><\/tr><tr><td>&nbsp;<\/td><td>Azure Spot instance<\/td><td>Not selected<\/td><\/tr><tr><td>&nbsp;<\/td><td>Size<\/td><td>Standard_D2s_v3 &#8211; 2vcpus, 8GiB memory<\/td><\/tr><tr><td>&nbsp;<\/td><td>Username<\/td><td>TestUser<\/td><\/tr><tr><td>&nbsp;<\/td><td>Password<\/td><td>TestPa$$w0rd!<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public inbound ports<\/td><td>Allow selected ports<\/td><\/tr><tr><td>&nbsp;<\/td><td>Select inbound ports<\/td><td>RDP (3389)<\/td><\/tr><tr><td>Disks<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Networking<\/td><td>Virtual network<\/td><td>ManufacturingVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>Subnet<\/td><td>ManufacturingSystemSubnet (10.30.10.0\/24)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public IP<\/td><td>(new) ManufacturingTestVM-ip<\/td><\/tr><tr><td>&nbsp;<\/td><td>NIC network security group<\/td><td>Basic<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public inbound ports<\/td><td>Allow selected ports<\/td><\/tr><tr><td>&nbsp;<\/td><td>Select inbound ports<\/td><td>RDP (3389)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Load balancing<\/td><td>Not selected<\/td><\/tr><tr><td>Management<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Advanced<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Tags<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Review + create<\/td><td>Review your settings and select <strong>Create<\/strong><\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"4\"><li>When the deployment is complete, select <strong>Go to resource<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 4: Connect to the Test VMs using RDP<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure Portal home page, select <strong>Virtual Machines<\/strong>.<\/li><li>Select <strong>ManufacturingTestVM<\/strong>.<\/li><li>In <strong>ManufacturingTestVM<\/strong>, select <strong>Connect &gt; RDP<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>In **ManufacturingTestVM<\/td><td>Connect<strong>, select **Download RDP file<\/strong>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"5\"><li>Save the RDP file to your desktop.<\/li><li>Connect to ManufacturingTestVM using the RDP file, and the username <strong>TestUser<\/strong> and the password <strong>TestPa$$w0rd!<\/strong>. After connecting, minimize the RDP session.<\/li><li>On the Azure Portal home page, select <strong>Virtual Machines<\/strong>.<\/li><li>Select <strong>CoreServicesTestVM<\/strong>.<\/li><li>In <strong>CoreServicesTestVM<\/strong>, select <strong>Connect &gt; RDP<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>In **CoreServicesTestVM<\/td><td>Connect<strong>, select **Download RDP file<\/strong>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"11\"><li>Save the RDP file to your desktop.<\/li><li>Connect to CoreServicesTestVM using the RDP file, and the username <strong>TestUser<\/strong> and the password <strong>TestPa$$w0rd!<\/strong>.<\/li><li>On both VMs, in <strong>Choose privacy settings for your device<\/strong>, select <strong>Accept<\/strong>.<\/li><li>On both VMs, in <strong>Networks<\/strong>, select <strong>Yes<\/strong>.<\/li><li>On CoreServicesTestVM, open PowerShell, and run the following command: ipconfig<\/li><li>Note the IPv4 address.<\/li><\/ul>\n\n\n\n<p><strong>Task 5: Test the connection between the VMs<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>ManufacturingTestVM<\/strong>, open PowerShell.<\/li><li>Use the following command to verify that there is no connection to CoreServicesTestVM on CoreServicesVnet. Be sure to use the IPv4 address for CoreServicesTestVM.<\/li><\/ul>\n\n\n\n<p>code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test-NetConnection 10.20.20.6 -port 3389<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"3\"><li>The test connection should fail, and you will see a result similar to the following:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture1-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture1-2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 6: Create CoreServicesVnet Gateway<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In <strong>Search resources, services, and docs (G+\/)<\/strong>, enter <strong>Virtual network gateway<\/strong>, and then select <strong>Virtual network gateways<\/strong> from the results.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture2-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture2-2-1024x248.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In Virtual network gateways, select <strong>+ Create<\/strong>.<\/li><li>Use the information in the following table to create the virtual network gateway:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Tab<\/strong><\/td><td><strong>Section<\/strong><\/td><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Basics<\/td><td>Project Details<\/td><td>Subscription<\/td><td>No changes required<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>ResourceGroup<\/td><td>ExceedlabsResourceGroup<\/td><\/tr><tr><td>&nbsp;<\/td><td>Instance Details<\/td><td>Name<\/td><td>CoreServicesVnetGateway<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Region<\/td><td>East US<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Gateway type<\/td><td>VPN<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>VPN type<\/td><td>Route-based<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>SKU<\/td><td>VpnGw1<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Generation<\/td><td>Generation1<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Virtual network<\/td><td>CoreServicesVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Subnet<\/td><td>GatewaySubnet (10.20.0.0\/27)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public IP address<\/td><td>Public IP address<\/td><td>Create new<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Public IP address name<\/td><td>CoreServicesVnetGateway-ip<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Public IP address SKU<\/td><td>Basic<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Enable active-active mode<\/td><td>Disabled<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Configure BGP<\/td><td>Disabled<\/td><\/tr><tr><td>Review + create<\/td><td>&nbsp;<\/td><td>Review your settings and select <strong>Create<\/strong>.<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture3-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture3-2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>It can take up to 45 minutes to create a virtual network gateway.<\/li><\/ul>\n\n\n\n<p><strong>Task 7: Create ManufacturingVnet Gateway<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In <strong>Search resources, services, and docs (G+\/)<\/strong>, enter <strong>Virtual network gateway<\/strong>, and then select <strong>Virtual network gateways<\/strong> from the results.<\/li><li>In Virtual network gateways, select <strong>+ Create<\/strong>.<\/li><li>Use the information in the following table to create the virtual network gateway:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Tab<\/strong><\/td><td><strong>Section<\/strong><\/td><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Basics<\/td><td>Project Details<\/td><td>Subscription<\/td><td>No changes required<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>ResourceGroup<\/td><td>ExceedlabsResourceGroup<\/td><\/tr><tr><td>&nbsp;<\/td><td>Instance Details<\/td><td>Name<\/td><td>ManufacturingVnetGateway<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Region<\/td><td>West Europe<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Gateway type<\/td><td>VPN<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>VPN type<\/td><td>Route-based<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>SKU<\/td><td>VpnGw1<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Generation<\/td><td>Generation1<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Virtual network<\/td><td>ManufacturingVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Subnet<\/td><td>GatewaySubnet (10.30.0.0\/27)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public IP address<\/td><td>Public IP address<\/td><td>Create new<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Public IP address name<\/td><td>ManufacturingVnetGateway-ip<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Public IP address SKU<\/td><td>Basic<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Enable active-active mode<\/td><td>Disabled<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>Configure BGP<\/td><td>Disabled<\/td><\/tr><tr><td>Review + create<\/td><td>&nbsp;<\/td><td>Review your settings and select <strong>Create<\/strong>.<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture4-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture4-2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>It can take up to 45 minutes to create a virtual network gateway.<\/li><\/ul>\n\n\n\n<p><strong>Task 8: Connect CoreServicesVnet to ManufacturingVnet<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In <strong>Search resources, services, and docs (G+\/)<\/strong>, enter <strong>Virtual network gateway<\/strong>, and then select <strong>Virtual network gateways<\/strong> from the results.<\/li><li>In Virtual network gateways, select <strong>CoreServicesVnetGateway<\/strong>.<\/li><li>In CoreServicesGateway, select <strong>Connections<\/strong>, and then select <strong>+ Add<\/strong>.<\/li><\/ul>\n\n\n\n<p>You will not be able to complete this configuration until the virtual network gateways are fully deployed.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"4\"><li>Use the information in the following table to create the connection:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td>CoreServicesGW-to-ManufacturingGW<\/td><\/tr><tr><td>Connection type<\/td><td>VNet-to-VNet<\/td><\/tr><tr><td>First virtual network gateway<\/td><td>CoreServicesVnetGateway<\/td><\/tr><tr><td>Second virtual network gateway<\/td><td>ManufacturingVnetGateway<\/td><\/tr><tr><td>Shared key (PSK)<\/td><td>abc123<\/td><\/tr><tr><td>Use Azure Private IP Address<\/td><td>Not selected<\/td><\/tr><tr><td>Enable BGP<\/td><td>Not selected<\/td><\/tr><tr><td>IKE Protocol<\/td><td>IKEv2<\/td><\/tr><tr><td>Subscription<\/td><td>No changes required<\/td><\/tr><tr><td>Resource group<\/td><td>No changes required<\/td><\/tr><tr><td>Location<\/td><td>East US<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture5-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture5-2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>To create the connection, select <strong>OK<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 9: Connect ManufacturingVnet to CoreServicesVnet<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In <strong>Search resources, services, and docs (G+\/)<\/strong>, enter <strong>Virtual network gateway<\/strong>, and then select <strong>Virtual network gateways<\/strong> from the results.<\/li><li>In Virtual network gateways, select <strong>ManufacturingVnetGateway<\/strong>.<\/li><li>In CoreServicesGateway, select <strong>Connections<\/strong>, and then select <strong>+ Add<\/strong>.<\/li><li>Use the information in the following table to create the connection:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td>ManufacturingGW-to-CoreServicesGW<\/td><\/tr><tr><td>Connection type<\/td><td>VNet-to-VNet<\/td><\/tr><tr><td>First virtual network gateway<\/td><td>ManufacturingVnetGateway<\/td><\/tr><tr><td>Second virtual network gateway<\/td><td>CoreServicesVnetGateway<\/td><\/tr><tr><td>Shared key (PSK)<\/td><td>abc123<\/td><\/tr><tr><td>Use Azure Private IP Address<\/td><td>Not selected<\/td><\/tr><tr><td>Enable BGP<\/td><td>Not selected<\/td><\/tr><tr><td>IKE Protocol<\/td><td>IKEv2<\/td><\/tr><tr><td>Subscription<\/td><td>No changes required<\/td><\/tr><tr><td>Resource group<\/td><td>No changes required<\/td><\/tr><tr><td>Location<\/td><td>West Europe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture6-1.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture6-1.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>To create the connection, select <strong>OK<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 10: Verify that the connections connect<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In <strong>Search resources, services, and docs (G+\/)<\/strong>, enter <strong>connections<\/strong>, and then select <strong>connections<\/strong> from the results.<\/li><li>Wait until the status of both connections is <strong>Connected<\/strong>. You may need to refresh your screen.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture7-1.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture7-1.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture8-1.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture8-1.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><strong>Task 11: Test the connection between the VMs<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>ManufacturingTestVM<\/strong>, open PowerShell.<\/li><li>Use the following command to verify that there is now a connection to CoreServicesTestVM on CoreServicesVnet. Be sure to use the IPv4 address for CoreServicesTestVM.<\/li><\/ul>\n\n\n\n<p>code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test-NetConnection 10.20.20.6 -port 3389<\/code><\/pre>\n\n\n\n<p>The test connection should succeed, and you will see a result similar to the following:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture9-1.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture9-1.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Close the Remote Desktop connection windows.<\/li><\/ul>\n\n\n\n<p>Congratulations! You have configured a VNet-to-VNet connection by using a virtual network gateway.<\/p>\n\n\n\n<p><mark class=\"kt-highlight\"><strong>Reminder<\/strong>: Don\u2019t forget to delete or shutdown all unused Azure resources after your labs for cost saving<\/mark><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this lab you will configure a virtual network gateway to connect the Exceedlabs Core Services VNet and Manufacturing VNet hosted in two separate azure region In this lab, you will: Task 1: Create CoreServicesVnet and ManufacturingVnet Task 2: Create &hellip; <a href=\"https:\/\/exceedthecloud.com\/?p=785\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":852,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"kt_blocks_editor_width":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,4],"tags":[39,36,35,31],"class_list":["post-785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","category-practical-labs-series","tag-gateway","tag-rdp","tag-virtual-machines","tag-virtual-network"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/istockphoto-1219430151-612x612-1.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=785"}],"version-history":[{"count":4,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/785\/revisions"}],"predecessor-version":[{"id":2327,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/785\/revisions\/2327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/media\/852"}],"wp:attachment":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}