다음을 통해 공유


Azure Portal: Virtual Network Peering

Introduction

Virtual network peering enables you to seamlessly connect two Azurvirtual 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, throughprivate IP addresses only. Azure supports:

  • VNet peering - connecting VNets within the same Azure region
  • Global VNet peering - connecting VNets across Azure regions

Source Microsoft Doc

 

Steps

Step 1: Virtual networking

I have posted my previous article to “Create a virtual network & virtual machine by using the Azure portal” **please refer this **link . Continuing that this article we are going to learn about vnet peering across azure regions.

Step  2: Log in

Log in to Microsoft azure ( https://portal.azure.com) portal with your credential

Step 3: Go to VMs

Click on the https://gallery.technet.microsoft.com/site/view/file/216050/1/2_1.png button in the left side blade.   

 https://gallery.technet.microsoft.com/site/view/file/216051/1/2_2.png

 

Step 4:VM Details

To get know more details of the virtual machine then click on the VM which is available in the Virtual machines page.

 https://gallery.technet.microsoft.com/site/view/file/216052/1/2_3.png

 

https://gallery.technet.microsoft.com/site/view/file/216053/1/2_4.png

Note: every vm in azure interally it will get connected through by private IP’s only

if  you want allow people to connect the vm through RDP , make sure while creating vm you have selected “Allow selected ports” option in pulic inbound section.** please refer this **link  to more details to creating the vm.

 

https://gallery.technet.microsoft.com/site/view/file/216054/1/25.png

Step 5: Verify RDP

to verify the RDP click on the https://gallery.technet.microsoft.com/site/view/file/216055/1/2_16.png button then right side panel click on the  https://gallery.technet.microsoft.com/site/view/file/216056/1/2_7.png buton the RDP file would be downloaded.

 

https://gallery.technet.microsoft.com/site/view/file/216057/1/2_5.png

 

If you are a windows user then click on the RDP ,enter the server IP address with vm user name and password.

 

https://gallery.technet.microsoft.com/site/view/file/216058/1/2_8.png

 

Repeat the steps Step: 15 - Step: 24 which is mentioned in my previous (**please refer this link ) ** article to create another new the vm.

 

https://gallery.technet.microsoft.com/site/view/file/216059/1/2_9.png

 

Step 6: VNet setup

Click on the https://gallery.technet.microsoft.com/site/view/file/216060/1/2_11.png button to open virtual network setup

https://gallery.technet.microsoft.com/site/view/file/216061/1/2_10.png

 

Step 7: Peering

Click on the https://gallery.technet.microsoft.com/site/view/file/216062/1/2_12.png button and then clik on  https://gallery.technet.microsoft.com/site/view/file/216063/1/2_13.png the button to create new peering

Enter the name ,select virtual network and click on the https://gallery.technet.microsoft.com/site/view/file/216064/1/2_14.png button.

https://gallery.technet.microsoft.com/site/view/file/216065/1/ss.png

Step 8: Open CMD

Open the vm which has public IP enabled and then enter “cmd” in the run , hit enter.

 

Step 9: Check status

enter the private IP address of the another vm then you can able to ping status. 

** **

https://gallery.technet.microsoft.com/site/view/file/216066/1/2_15.png