IP address pools can be used to assign IP addresses from specific CIDR blocks to elastic IP addresses (EIPs). You can create an IP address pool and add CIDR blocks to the IP address pool. When you create an EIP, you can specify an IP address pool. The system assigns an IP address from a CIDR block in the IP address pool to the EIP. This topic describes how to create and manage an IP address pool.
Limits
- The feature to specify an IP address pool for an EIP is available only for users who are included in the whitelist. To use the feature, submit a ticket.
- You can add only IPv4 CIDR blocks to an IP address pool.
- By default, you can create one IP address pool in each region. Each IP address pool can contain up to 256 IP addresses. If you want to use more IP address pools or want to add more IP addresses to an IP address pool, submit a ticket.
- You can specify an IP address pool only when you create a pay-as-you-go EIP.
- To specify an IP address pool when you create an EIP, make sure that the IP address pool and the EIP belong to the same region.
- If your Alibaba Cloud account has overdue payments, you can only delete IP address pools.
Billing
- After you add a CIDR block to an IP address pool, you are charged an instance fee
for the IP addresses that are not assigned to EIPs within 1 hour. The instance unit
price is 0.003 USD/hour/instance.
Note You are not charged an instance fee for unassigned IP addresses before October 30, 2022.
- You are charged for the IP addresses that are assigned to EIPs based on the billing rules of EIP. For more information, see Pay-as-you-go.
Create an IP address pool and add CIDR blocks
Before you use an IP address pool, you must create an IP address pool and add CIDR blocks to the IP address pool. You can add CIDR blocks when you create an IP address pool. You can also add CIDR blocks based on your business requirements after you create an IP address pool.
Specify an IP address pool for an EIP
When you create a pay-as-you-go EIP, you can specify an IP address pool for the EIP. The system assigns an IP address from a CIDR block in the IP address pool to the EIP.
More operations
Operation | Description |
---|---|
Modify an IP address pool |
|
Delete an IP address pool | Before you delete an IP address pool, make sure that the IP addresses in the CIDR
blocks that are added to the IP address pool are not assigned to EIPs.
|
Delete a CIDR block from an IP address pool | Before you delete a CIDR block, make sure that the IP addresses in the CIDR block
are not assigned to EIPs.
|
References
- CreatePublicIpAddressPool: creates an IP address pool.
- UpdatePublicIpAddressPoolAttribute: modifies an IP address pool.
- ListPublicIpAddressPools: queries available IP address pools.
- DeletePublicIpAddressPool: deletes an IP address pool.
- AddPublicIpAddressPoolCidrBlock: adds a CIDR block to an IP address pool.
- ListPublicIpAddressPoolCidrBlocks: queries CIDR blocks in an IP address pool.
- DeletePublicIpAddressPoolCidrBlock: deletes a CIDR block from an IP address pool.