post https://api.linode.com//networking/ips/assign
Assign any set of IPv4 addresses and IPv6 ranges to Linodes in one region. This allows swapping, shuffling, or otherwise reorganizing IPs among your Linodes.
The following restrictions apply:
- All Linodes need to have at least one public IPv4 address assigned.
- For Linode interfaces, the Linode needs to have a public interface, and the address it receives can't be a private IPv4 address.
- Linodes may have no more than one assigned private IPv4 address.
- Linodes may have no more than one assigned IPv6 range.
- Shared IP addresses cannot be swapped between Linodes.
Open a support ticket to request additional IPv4 addresses or IPv6 ranges beyond standard account limits.
Removing an IP address that has been set as a Managed Linode's
ssh.ip
causes the Managed Linode's SSH access settings to reset to their default values.
To view and configure Managed Linode SSH settings, use the following operations:
Addresses with an active 1:1 NAT to a VPC Interface address cannot be assigned to other Linodes.
linode-cli networking ip-assign \
--region us-east \
--assignments.address 192.0.2.1 \
--assignments.linode_id 123 \
--assignments.address 2001:db8:3c4d:15::/64 \
--assignments.linode_id 234
<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>
ips:read_write
linodes:read_write
<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>