How to Create Virtual Network, Subnet, Vnet Peering on Azure

To Create Virtual Network, Subnet, Vnet Peering On Azure.

Introduction:

Azure virtual network (Vnet) is the fundamental building block for your private network in azure. A subnet is a range of IP addresses in the virtual network. Virtual network peering enables you to seamlessly connect two or more virtual networks in azure.

Procedure:

Step 1: Login to Microsoft Azure and select your preferred region in Settings.

Step 2: Create Virtual network named VN1 by entering the following details.

Step 3: Create new resource group and fill the instance details.

Step 4: Create a new subnet in the IP address section .

Step 5: To go next, Click Next and then click review and create.

Step 6: Again, create another Virtual network named VN2 with the same resource group.

Step 7: Click Next for the next steps and click review and create.

Step 8: Create Virtual machine named ubuntu with the Created Virtual network VN1.

Step 9: In Networking Section Select the default subnet.

Step 10: Repeat the same process and create another virtual machine named ubuntu1 with default2 subnet and select None in Public IP address.

Step 11: Open Mobaxterm and login with SSH to ubuntu virtualmachine and ping to private IP address in ubuntu1 virtualmachine.

Step 12: Now Create a Virtual machine named ubuntu3 by selecting virtual network VN2 and selecting default2 subnet and select None in public IP address.Subnets in the same virtual network can communicate with each other, but subnets in different virtual network cannot communicate with each other by default.

Step 13: To communicate with different virtual network, we need to create Vnet Peering


Step 14: Go to Virtual network and select VN1 and select peering and then click add.

Step 15: Enter the details and select VN2 and click add to create Vnet peering.

Step 16: Now ping and login through SSH from one virtual network VM to another virtual network VM is working.

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to create virtual network, subnet and Vnet peering on Azure. Your feedback is much welcome.

FAQ
Q
Why Virtual networking is important?
A
Virtual Networking Increases Your Visibility as a Business Analysis Professional.
Q
What is the difference between VNET and subnet?
A
A VNET is the address space. It hosts a subnet, where you will connect resources. Subnet segment the address space into multiple subnetworks.
Q
How many virtual networks can be created in Azure?
A
Creating a virtual network does not incur costs for the resource, and you can create up to 50 virtual networks per subscription.
Q
How to Enable subnets in different VPCs to communicate with each other?
A
You can create VPC peering connections to enable subnets in different VPCs to communicate with each other.
Q
Can two private subnets talk to each other?
A
Subnets in the same VPC can communicate with each other, but subnets in different VPCs cannot communicate with each other by default.