Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy VNet-VNet on Microsoft Azure

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

We have always stressed that when you set up a VM on Microsoft Azure, you must pay attention to the fact that the machines that need interworking must be in the same VNet. If you encounter the following situations:

1. How to interconnect different data centers across data centers

2. Originally it was two VNet, but now they want to realize interconnection.

3, different subscriptions, now want to achieve interconnection

4. Interconnection of local computer room, IDC and Microsoft Azure

All in all, in order to interconnect the VNet which is not interoperable originally, the interconnection of VNet to VNet can be realized through × ×.

Let's start with:

1. Create a VNet in eastern China, named ChinaEast01. We click New, Network-> Virtual Network-> Custom create.

2, the same steps are taken to complete the Vnet of ChinaNorth01.

3. Add local network ShadowTest and ChinaNorthVNet.

4. Set the Site-To-Site × × connection between Azure VNet ChinaEastVNet and the local network ChinaNorthVNet.

5. Create a × × × Gateway gateway in Azure VNet and set up dynamic routing. (the jihnny-vnet that has been built is used here)

Wait 15-30 minutes.

6. After the dynamic route is created, we reset the gateway address of the local network. In the virtual network, we can see that the address of the × × gateway corresponding to ChinaEast01 is 42.159.247.2.

7. We reset the × × × gateway address of the local network, and modified the × × × gateway address of the local network ChinaEastVNet to 42.159.247.2 (take East as an example, North can be configured according to the screenshot)

8. Connect the × × × Gateway gateway. After the above steps are set up, we can set up the Azure Virtual Network IPSec × × × gateway through Azure PowerShell and run Azure PowerShell as an administrator.

Type:

# in the pop-up interface, enter the AzureChina user name and password Add-AzureAccount-Environment AzureChinaCloud# to select the current subscription Select-AzureSubscription 'POC'-current# setting ChinaEastVNet Set-AzureVNetGatewayKey-VNetName ChinaEastVNet-LocalNetworkSiteName ChinaNorthVNet-SharedKey A1b2C3D4# setting ChinaNorthVNetSet-AzureVNetGatewayKey-VNetName ChinaNorthVNet-LocalNetworkSiteName ChinaEastVNet-SharedKey A1b2C3D4

After a moment, you can see that VNet-To-VNet is connected.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report