Create an Azure virtual network with four subnets using this address space 192.148.30.0/26
Published: 2024-07-11 14:00:14

Creating an Azure Virtual Network (VNet) with four subnets using the address space 192.148.30.0/26 involves a few detailed steps. 

Step-by-Step Guide to Creating a VNet with Four Subnets in Azure

## Sign in to Azure Portal

1. Open a web browser and go to the Azure portal.
2. Sign in with your Azure account credentials.



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1238eomjb0dyi9stp10g.png)


## Create a Virtual Network

1. In the Azure portal, click on "Create a resource" in the upper-left corner.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9z8c8dad73y40ncrx5ju.png)


2. In the "Search the Marketplace" box, type "Virtual Network" and select it from the list.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8worl4pjwyff9r7tpp55.png)


3. Click on the "Create" button.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lxjs6a3yuw54bxpu1zj5.png)



## Basics Tab

1. Subscription: Select your subscription.
2. Resource group: Select an existing resource group or create a new one.
3. Name: Provide a name for your virtual network (e.g., MyVNet).
4. Region: Choose the region where you want to create the VNet.
5. Click on the "Next: IP Addresses" button.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9rjgmc5zedyufz8dp8z.png)


## IP Addresses Tab

1. IPv4 address space: Enter 192.148.30.0/26.
2. Click on the "+ Add subnet" button to start adding your subnets.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m1fgkybr38hdj5rroxyc.png)



## Add Subnets


- You need to divide the 192.148.30.0/26 address space into four subnets. Each subnet in this case will have an address space of /28, which provides 16 addresses per subnet.


- Subnet 1:

1. Name: Subnet1
2. Subnet address range: 192.148.30.0/28
3. Click "Add".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9mm44p1nm11yai3dtr26.png)


- Subnet 2:

1. Name: Subnet2
2. Subnet address range: 192.148.30.16/28
3. Click "Add".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bi6sw7had5id6tw52hmm.png)


- Subnet 3:

1. Name: Subnet3
2. Subnet address range: 192.148.30.32/28
3. Click "Add".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2ophpy046p942sfjlbd.png)


- Subnet 4:

1. Name: Subnet4
2. Subnet address range: 192.148.30.48/28
3. Click "Add".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3scsr6psgocmqv6v1abr.png)


## Review and Create

1. Once all subnets are added, click on the "Review + create" button.
2. Review the configuration details and then click on the "Create" button.



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjj29b1ke3d6xiwh3y2b.png)


## Final Address Space Configuration

1. Subnet 1: 192.148.30.0/28 (Range: 192.148.30.0 - 192.148.30.15)

2. Subnet 2: 192.148.30.16/28 (Range: 192.148.30.16 - 192.148.30.31)

3. Subnet 3: 192.148.30.32/28 (Range: 192.148.30.32 - 192.148.30.47)

4. Subnet 4: 192.148.30.48/28 (Range: 192.148.30.48 - 192.148.30.63)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xeyknge4v38gnjsxm6qr.png)


By following these steps, you will have successfully created an Azure Virtual Network with four subnets using the address space 192.148.30.0/26.