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 > Subnets, 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​

  • List: shows name, CIDR, parent virtual network, and IPs in use
  • Delete: only possible when no network interfaces are attached

Next steps​