Skip to main content

Subnet

Overview​

A subnet is a slice of the IP range inside a virtual network. When you create a VM and pick a subnet, the VM is assigned an address from that subnet's range automatically.


Creating a subnet​

  1. Under Network > Subnet, click Create Subnet.

  2. Configure the following:

    FieldDescriptionExample
    Subnet NameAn identifying nameprod-subnet-a
    Linked networkThe virtual network it belongs toprod-vnet
    Network CIDRSubnet range, within the virtual network192.168.0.0/24
    GatewayDefault gateway IP (one IP inside the subnet CIDR)192.168.0.1
  3. Click Create.

Subnet CIDR and gateway rules
  • The subnet CIDR must be a subset of the virtual network CIDR. If the virtual network is 192.168.0.0/16, subnets can be 192.168.0.0/24, 192.168.1.0/24, etc.
  • If the gateway IP is outside the subnet CIDR, you'll see networkCidrMismatch.

CIDR sizing guide​

The subnet size can't be changed later, so estimate how many IPs you need before creating it.

CIDRUsable IPsTypical use
/23~512Large environments (hundreds of VMs)
/24~256General use (dozens of VMs; default)
/25~128Smaller, isolated environments
/26~64Secondary subnets for DB / admin nodes

Splitting subnets by role makes firewall rules easier (e.g. web-subnet, app-subnet, db-subnet, mgmt-subnet).


Managing subnets​

Click a subnet in the Network > Subnet list to open its detail page. The detail page has three tabs.

TabContents
OverviewName, CIDR, parent virtual network
Network interfacesNetwork interfaces in this subnet. Create one right there with Add network interface
SettingsRename or delete the subnet

Delete from the bottom of the Settings tab. A subnet cannot be deleted while network interfaces remain attached.

Network interfaces tab on the subnet detail page


Next steps​