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
- Navigate to Networking → tab IP Pools → Create IP Pool.
- Configure the properties:
| Property | Description | Required |
|---|---|---|
| Name | Unique within the Organization | Yes |
| CIDR | The network to hand out addresses from. Cannot be changed later | Yes |
| Description | What this IP Pool is for. Only shown to you | No |
- Add at least one range:
| Property | Description | Required |
|---|---|---|
| Kind | Allocatable or Excluded | Yes |
| From | The first address the range covers | Yes |
| To | The last address the range covers | Yes |
| Description | Only shown to you | No |
- Click Create.
TIP
Addresses are handed out from Allocatable ranges only. Add an Excluded range to prevent handing out certain ranges or hosts.
Terraform
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"
}
}