Here we will learn how we can make connection within two Vnet of same region.
Type of Vnet peering:
- Vnet peering- connecting Vnets within same region
- global Vnet peering- connecting Vnet in different region
Virtual network peering enables you to seamlessly connect two or more Virtual Networks in Azure.The virtual networks appear as one for connectivity purposes. The traffic between virtual machines in peered virtual networks uses the Microsoft backbone infrastructure. Vnets peering are not transitive in nature.
The benefits of using virtual network peering
- A low-latency, high-bandwidth connection between resources.
- network traffic between peered Vnet is private.
- The ability to transfer data between virtual networks across Azure subscriptions
- No public Internet, gateways, or encryption is required in the communication between the virtual networks.
- Traffic between the virtual networks is kept on the Microsoft backbone network.
How to establish connection between two Vnet:
Create two vnet in same region. (Vnet1, Vnet2)
Create two VMs (vm1, vm2). one in each Virtual network.
First we will create peering from vnet1 to vnet2. vnet1 > vnet2
openVnet1. goto Peerings option on left side menu.click on add link.
provide below information for peering from vnet1 to vnet2. click on OK button after providing all information.
Now In the same way we need to create peering for vnet2. this will be for communication from vnet2 > vnet1.
Finally turn off Windows firewall of both vm (vm1, vm2).
Now take RDP of both VMs (vm1, vm2).
from vm1 server try to ping private IP of vm2 in cmd window. You will get response.
same try to ping private IP of vm1 in cmd window. you will get response here also.
Here you are accessing VM from different vnet in same region.
0 comments:
Post a Comment