DEV Community

Cover image for Creating Azure Virtual Network with 4 Subnets Using the Address Space 192.148.30.0/26
Emeka moses
Emeka moses

Posted on

Creating Azure Virtual Network with 4 Subnets Using the Address Space 192.148.30.0/26

Azure Virtual Network (VNet)

Is a fundamental service in Microsoft Azure that creates a private network environment within the Azure cloud. It functions similarly to a traditional network you might have on-premises, but with the added benefits of Azure's scalability, availability, and security features.

Here's a breakdown of key functionalities of an Azure VNet:

Isolation and Security

VNet isolates your Azure resources, such as virtual machines (VMs), from the public internet and other VNets. This isolation creates a secure environment for your applications to communicate with each other without worrying about unauthorized access.

Subnet Creation

VNets can be further segmented into subnets. Subnets act like sub-divisions within the VNet, allowing you to group related resources and define specific access controls for each subnet.

IP Address Management

VNets use a private IP address space (like the one you provided: 192.148.30.0/26) for resources within the network. This allows for private communication between resources without conflicting with public IP addresses.

Connectivity Options

VNets offer various options for connecting resources:

Internet Access

Subnets can be configured to allow resources controlled access to the internet through outbound rules in network security groups (NSGs).
VNet Peering: VNets can be peered together to enable communication between resources across different VNets within the same region.

VNets can connect to your on-premises network using a VPN gateway, creating a hybrid network environment.
Integration with Azure Services: VNets can integrate with various Azure services like Azure SQL Database or Azure Storage. By placing these services within a VNet, you can enforce private access only from authorized resources within the VNet.

Benefits of using Azure Virtual Network:

Improved Security: Isolation and access control features enhance the security of your cloud resources.
Simplified Management: VNets provide a centralized way to manage and configure your network infrastructure in Azure.
Scalability: You can easily scale your VNet by adding or removing subnets as needed.

Flexibility: VNets offer various connectivity options to suit your specific needs.

In summary, Azure VNet is a critical component for building secure and scalable private networks within the Azure cloud environment. It provides a foundation for deploying and managing your Azure resources while ensuring their isolation and controlled access.

Prerequisites
Before we begin, ensure you have:

An Azure subscription. If you don't have one, you can create a free account.
Basic familiarity with Azure Portal and networking concepts.
A plan for subnet allocation within the address space 192.148.30.0/26.
Enter fullscreen mode Exit fullscreen mode




Steps in Creating Azure Virtual Network with 4 Subnets.

Step 1 Sign in to Azure Portal:

  • Navigate to portal.azure.com and log in with your Azure account.

Step 2 Create a Virtual Network:

  • from the Azure portal home page Click on Virtual network.

Image description

Image description

Image description

Step 3: Configure Address Space

  • In the "IP Addresses" tab, modify the existing address space to 192.148.30.0/26.

Click on Add a subnet.

Image description

Step 4: Add Subnets
Enter the following details:
1 Subnet name: Enter a name for the subnet (e.g., Subnet1).

2.Subnet address range: Enter the address range for the first subnet (e.g., 192.148.30.0/28).

Click on Add.

Image description

Image description

  • Repeat 1 & 2 above to add the remaining three subnets with the following details:

Subnet2: 192.148.30.16/28

Image description

Subnet3: 192.148.30.32/28

Image description

Subnet4: 192.148.30.48/28

Image description

Image description

Step 5: Review and Create

  • Click on Review + create to review your configuration

  • After the validation passes, click on Create

Step 6: Verification

  • Once the deployment is complete, navigate to the Resource Group you selected earlier (RG1)

  • Click on your Virtual Network (e.g., MyVNet).
    Verify that the address space and subnets are correctly configured.
    We have successfully created and deployed an Azure Virtual Network with four subnets given the address space 192.148.30.0/26.

In conclusion, we can appreciate that creating an Azure Virtual Network with multiple subnets using the address space 192.148.30.0/26 provides a robust foundation for deploying and managing your Azure resources. By following the steps outlined in this guide, you can efficiently organize and secure your network infrastructure while leveraging Azure's scalability and connectivity options. Whether you're building a small-scale application or a complex enterprise solution, Azure Virtual Networks offer the flexibility and control needed to meet your networking requirements effectively.

Top comments (0)