Subnets
A Subnet is a range of IP addresses within a VPC that groups resources. In the same analogy for VPC being the neighbourhood you have created for all your resources, isolated from other neighborhoods, Subnet here represents the particular segment/line/area inside your neighbourhood. You can determine if this area wants to be accessed by anyone publicly (Public subnet) or if it’s completely restricted to the people inside the area only (Private subnet)
Can be Public (internet-facing) or Private (internal-only)
One subnet can host multiple VMs
Creating a Subnet
Navigate to Networking > Subnets
Click "Create Subnet"
Fill in:
VPC (required)
Subnet Name (required)
Description
Access Type: Public / Private (required)
Public - Public subnets can be accessed through the internet. Public IP addresses that you want to assign to your publicly accessible VMs can only be assigned to this type of subnet
Private - Private subnets cannot be accessed through the internet. Only private IP addresses will be created inside this subnet, and you can only add privately accessible VMs inside this subnet
CIDR (required)
CIDR means Classless Inter-Domain Routing. It’s notation to define the range of IP addresses for your subnet. It also defines how big your subnet is. For more details, check the section below
Gateway IP (required)
It's the IP address used by instances in the subnet to send traffic outside the subnet (like to the internet or other subnets). It’s mainly used for:
Routing internal traffic or
Connecting to the internet via an internet or NAT gateway, or
Being the default route in the route table for resources in the subnet
If no VPC exists, → option to create one in the pop-up
Click "Create Subnet"
Subnet appears in the list with its properties
Deleting a Subnet
You can only delete a subnet if it is not attached to any VM. Here's how the process works:
Pre-check
If the subnet is currently attached to any VM, the UI will:
Block deletion
Show a warning:
❌ "Subnet is in use by one or more Virtual Machines. Please detach all VMs before deleting the subnet."
If Subnet is NOT attached:
Navigate to Networking > Subnets
Click on the three-dot menu next to the subnet you want to delete
Select "Delete Subnet"
A confirmation dialog appears with a caution:
⚠️ "Deleting this subnet is irreversible and will remove the subnet and all its route table associations."
To confirm, you must type the subnet name manually (copy-paste disabled)
If the entered name matches:
Subnet is deleted successfully
Toast: “Subnet deleted successfully”
If mismatch:
Toast: “Entered name does not match. Deletion cancelled”
Billing and Pricing
Subnets are completely free, and you won’t be charged for any subnets
Last updated
Was this helpful?