-
Notifications
You must be signed in to change notification settings - Fork 41
reserved_ip for private IPv4 #128
Comments
Hi @johnstudarus I don't think Packet API supports private ipv4 block reservation, I've just tried:
.. however there are pre-allocated private IP blocks per faciltiy, and they can be used (to some extent) with https://www.terraform.io/docs/providers/packet/d/precreated_ip_block.html |
Interesting... Through the GUI, you can request a private_ipv4 block by clicking on the server first and then drilling down. But if you click through from the project network, you can't get request a private_ipv4 block... |
IIUC, from the device -> Network section in the UI, you don't request blocks, you just assign private IP from pre-allocated private IPv4 block in the facility. The private IPv4 block is allocated in the facilility when you run a device in the faciltiy. Theoretically, it should be possible to assign IP from a block with the precreated_ip_block datasource. It might not be srtaightforward though, because the block will not exists before the (first) device is created in a faciltiy. |
The ability to assign private IPs dynamically, after the initial provision, could be possible with equinix/terraform-provider-metal#12 (comment). I'm not sure if it would be possible to change those addresses after the port has been toggled to Layer3 for the first time (perhaps the provider would need to convert to layer2 and back to layer3 to add additional addresses?). I believe there is a limit of 1 private IP range per device. In any case, I'm closing this issue as this provider is being deprecated in favor of the Equinix Metal provider Let's bring this issue up again over there if there is still interest. |
Any reason why there isn't support for private address allocations? Seems like it would be an easy feature to add (underlying API supports it).
The text was updated successfully, but these errors were encountered: