A virtual network (VNet) in Azure acts as the foundation for your private cloud environment. It defines a secure communication space for your Azure resources, including virtual machines (VMs). This blog will guide you through creating a VNet with four subnets using the address space 192.148.30.0/26.
Prerequisites:
- An Azure account with an active subscription
Steps
1.Access the Azure Portal:
Log in to the Azure portal https://azure.microsoft.com/en-us/get-started/azure-portal using your Azure account credentials.
2. Create a Virtual Network:
- In the Azure portal search bar, type "Virtual Network" and select the service from the results.
- Click on the "+ Create" button.
3. Configure Virtual Network Settings:
- Provide a unique name for your VNet (e.g., "MyVNet").
- Select the appropriate subscription that you want to use for this virtual network.
- Choose a resource group or create a new one to organize your Azure resources.
- Select the appropriate location for your VNet deployment.
- Click on the IP Address on your top left options
4. Define the IP Address Space:
- For the "Address space" field, enter "192.148.30.0/26" as the address space for the virtual network.
- A /26 subnet mask provides 64 usable IP addresses within the VNet.
- Leave the other settings at their default values and click on the "Next: Subnets" button.
5. Create and Configure the Subnets:
Click on "+ Subnet" to add a new subnet.
Provide a name for your subnet (e.g., "Subnet1").
Define the subnet address range. In this step, you'll divide the /26 VNet address space (192.148.30.0/26) into four subnets. To achieve this, you'll use a /28 subnet mask. This configuration provides 16 usable IP addresses per subnet, offering a balanced approach for your four-subnet virtual network.
Subnet 1:
- Name: Subnet 1
- Subnet address range: 192.148.30.0/28
- Click "Add".
- Subnet 2
1.Name: Subnet 2
2.Subnet address range: 192.148.30.16/28
- Click "Add"
- Subnet 3
1.Name: Subnet 3
2.Subnet address range: 192.148.30.32/28
3.Click "Add"
- Subnet 4
- Name: Subnet 4
- Subnet address range: 192.148.30.48/28
- Click " Add"
6. Review and create the virtual network
- Review the configuration details of your VNet and subnets to ensure they are correct.
- Once satisfied, click on the "Review + create" button to validate the settings.
- After validation is successful, click on the "Create" button to deploy your virtual network with the four subnets
Excellent work! You've meticulously divided your Azure virtual network's /26 address space (192.148.30.0/26) into four efficiently sized subnets, providing a solid foundation for deploying your resources.
Top comments (2)
Wonderful work. Broken down into simple terms that can be followed. Well done đź‘Ź
U are doing a great job here Ada