Skip to content

Create IP Pool

INFO

To learn about IPAM, IP Pools and allocations, see Subnet Addressing.

An IP Pool hands out addresses from a CIDR. It is used by Subnets with mode IPAM.

Create an IP Pool

  1. Navigate to Networking → tab IP PoolsCreate IP Pool.
  2. Configure the properties:
PropertyDescriptionRequired
NameUnique within the OrganizationYes
CIDRThe network to hand out addresses from. Cannot be changed laterYes
DescriptionWhat this IP Pool is for. Only shown to youNo
  1. Add at least one range:
PropertyDescriptionRequired
KindAllocatable or ExcludedYes
FromThe first address the range coversYes
ToThe last address the range coversYes
DescriptionOnly shown to youNo
  1. Click Create.

TIP

Addresses are handed out from Allocatable ranges only. Add an Excluded range to prevent handing out certain ranges or hosts.

Terraform

Reference

terraform
resource "meltcloud_ip_pool" "example" {
  name        = "workload"
  cidr        = "10.20.0.0/24"
  description = "workload addresses"

  # addresses are handed out from allocatable ranges only
  range {
    kind          = "allocatable"
    start_address = "10.20.0.10"
    end_address   = "10.20.0.200"
  }

  # an excluded range prevents handing out addresses something else already uses
  range {
    kind          = "excluded"
    start_address = "10.20.0.1"
    end_address   = "10.20.0.3"
    description   = "routers"
  }
}

resource "meltcloud_ip_pool" "storage" {
  name = "storage"
  cidr = "10.30.0.0/24"

  range {
    kind          = "allocatable"
    start_address = "10.30.0.10"
    end_address   = "10.30.0.200"
  }
}