All Products
Search
Document Center

Elastic IP Address:Create and manage an IP address pool

Last Updated:Jul 09, 2024

To use elastic IP addresses (EIPs) or contiguous EIPs within a specific CIDR block, you can create an IP address pool and add the CIDR block to the IP address pool. When you create an EIP, you can specify the IP address pool to assign an IP address to the EIP.

Limits

  • You can add only IPv4 CIDR blocks to an IP address pool.

  • Each Alibaba Cloud account can create at most 16 IP address pools in each region and all IP address pools in each region can contain up to 256 IP addresses.

    Note
    • If an IP address is assigned as an EIP, it consumes the EIP quota. If an IP address is not assigned as an EIP, it does not consume the EIP quota. You can check the EIP quota on the Quota Center page.

    • If you used IP address pools before 10:00:00 on June 5, 2024 and the maximum number of IP addresses in a region is greater than 256, the actual maximum number of IP addresses supported by the region is displayed on the Quota Management page.

    To use more IP addresses, request a quota increase. For more information, see Adjust quotas. To create more IP address pools, contact your account manager.

  • Only BGP (Multi-ISP) lines support IP address pools of the Anti-DDoS Pro/Premium type.

  • When you specify an IP address pool to create EIPs:

    • The EIPs must use the pay-as-you-go billing method.

    • The IP address pool and the EIPs must belong to the same region and use the same line type.

    • When you create EIPs protected by Anti-DDoS Pro/Premium, you must specify an IP address pool of the Anti-DDoS Pro/Premium type.

  • If your Alibaba Cloud account has overdue payments, you can only delete IP address pools. For more information, see Overdue payments of IP address pools.

Billing description

Item

Description

Pricing

  • After you add a CIDR block to an IP address pool, you are charged a public IP retention fee for each IP address within the CIDR block regardless of whether the IP addresses are assigned as EIPs. After an IP address is assigned as an EIP from an IP address pool, you are no longer charged an EIP configuration fee.

    Unit price of public IP retention fee: USD 0.007/hour/IP address.

  • If you delete a CIDR block and add a new CIDR block, you are charged for each IP address in the new CIDR block. You are charged only once for CIDR blocks that are repeatedly added within one hour.

  • If the CIDR block belongs to an on-premises network, you are not charged for the CIDR block.

Billing cycles and bill generation time

Hourly

If the usage duration in a billing cycle is less than 1 hour, the usage duration is rounded up to 1 hour.

A bill is typically generated about 1 hour after the current billing cycle ends. The actual time when bills are issued is determined by the system.

Procedure

image

Preparations

Log on to the IP address pool console and perform the following operations:

  1. Apply for the permissions to use the IP address pool feature.

    To apply for the permissions, contact your account manager.

  2. Enable the IP address pool feature.

    If you used the IP address pool feature before 10:00:00 (UTC+8) on June 5, 2024, the system automatically enables the IP address pool feature to ensure that your services can run as expected. You can skip this step.

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.

  1. Log on to the IP Address Pool console.

  2. In the top navigation bar, select the region in which you want to create an IP address pool.

  3. On the IP Address Pool page, click Create IP Address Pool.

  4. On the Create IP Address Pool page, use one of the following methods to create an IP address pool and add a CIDR block:

    Add a CIDR block when you create an IP address pool

    1. Set the following parameters and click Submit.

      Parameter

      Description

      IP Address Pool Name

      Enter a name for the IP address pool.

      Line Type

      Select a line type for the IP address pool.

      • BGP (Multi-ISP): provides premium BGP lines across the world. BGP lines from different ISPs are used at the same time and the optimal BGP line is automatically selected to ensure network stability. Supported ISPs are China Telecom, China Unicom, China Mobile, China Mobile Tietong, China Netcom, CERNET, NRTA, Dr. Peng Group, and Founder Broadband.

      • BGP (Multi-ISP) Pro: BGP (Multi-ISP) Pro improves the efficiency of data transmission from regions outside the Chinese mainland to the Chinese mainland. Compared with BGP (Multi-ISP), BGP (Multi-ISP) Pro establishes cross-border connections by using Chinese mainland ISP services to provide services to users in the Chinese mainland, excluding data centers. This reduces network latency.

        Note

        The following regions support BGP (Multi-ISP) Pro: China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).

      Security Protection

      Select a protection type based on your business requirements.

      • Default: Default EIPs from the Default IP address pool can mitigate DDoS attacks at 5 Gbit/s or lower. For more information, see What is Anti-DDoS Origin?

      • Anti-DDoS Pro/Premium: EIPs allocated from IP address pools of the Anti-DDoS Pro/Premium type can mitigate DDoS attacks at the Tbit/s level.

        You can select Anti-DDoS Pro/Premium only if Line Type is set to BGP (Multi-ISP).

        Note

        IP address pools of the Anti-DDoS Pro/Premium type are supported in the following regions: China (Hong Kong), Philippines (Manila), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), US (Virginia), US (Silicon Valley), Germany (Frankfurt), and UK (London).

      Add CIDR Block

      You can turn on or off Add CIDR Block. If you turn on Add CIDR Block, you can select a method to add CIDR blocks.

      • Select Mask and select a mask from the drop-down list.

        If you select Mask, the system can automatically create a CIDR block. The subnet mask must be 24 to 28 bits in length.

      • If you select Destination CIDR Block, you need to enter a CIDR block.

        You can add only an IPv4 CIDR block. The CIDR block cannot start with 0 and the subnet mask must be 23 to 30 bits in length.

        Note

        If you select Destination CIDR Block, you can contact your account manager to request a specific CIDR block. You can also use an on-premises CIDR block. Make sure that the on-premises CIDR block is migrated to the cloud before you use it. For more information, see Bring your public IP address range to Alibaba Cloud.

      In this example, Add CIDR Block is turned on and Mask/Destination CIDR Block is specified to add CIDR blocks.

      Resource Group

      Select the resource group to which the IP address pool belongs.

      The resource group must be a resource group that is created in Resource Management by the current Alibaba Cloud account. For more information, see Create a resource group.

      Tag

      Add a tag to the IP address pool.

      Specify Tag Key and Tag Value.

      Description

      Enter a description for the IP address pool.

    2. In the dialog box that appears, check the status of the IP address pool and click Disable.

    Add a CIDR bock after you create an IP address pool

    Note

    If you want to add a CIDR block to an existing IP address pool, go to Step c.

    1. Set the following parameters and click Submit.

      Parameter

      Description

      IP Address Pool Name

      Enter a name for the IP address pool.

      Line Type

      Select a line type for the IP address pool.

      • BGP (Multi-ISP): provides premium BGP lines across the world. BGP lines from different ISPs are used at the same time and the optimal BGP line is automatically selected to ensure network stability. Supported ISPs are China Telecom, China Unicom, China Mobile, China Mobile Tietong, China Netcom, CERNET, NRTA, Dr. Peng Group, and Founder Broadband.

      • BGP (Multi-ISP) Pro: BGP (Multi-ISP) Pro improves the efficiency of data transmission from regions outside the Chinese mainland to the Chinese mainland. Compared with BGP (Multi-ISP), BGP (Multi-ISP) Pro establishes cross-border connections by using Chinese mainland ISP services to provide services to users in the Chinese mainland, excluding data centers. This reduces network latency.

        Note

        The following regions support BGP (Multi-ISP) Pro: China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).

      Security Protection

      Select a protection type based on your business requirements.

      • Default: Default EIPs from the Default IP address pool can mitigate DDoS attacks at 5 Gbit/s or lower. For more information, see What is Anti-DDoS Origin?

      • Anti-DDoS Pro/Premium: EIPs allocated from IP address pools of the Anti-DDoS Pro/Premium type can mitigate DDoS attacks at the Tbit/s level.

        You can select Anti-DDoS Pro/Premium only if Line Type is set to BGP (Multi-ISP).

        Note

        IP address pools of the Anti-DDoS Pro/Premium type are supported in the following regions: China (Hong Kong), Philippines (Manila), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), US (Virginia), US (Silicon Valley), Germany (Frankfurt), and UK (London).

      Add CIDR Block

      You can turn on or off Add CIDR Block. If you turn on Add CIDR block, you can specify Mask or Destination CIDR Block to add CIDR blocks.

      By default, Add CIDR Block is turned off.

      Resource Group

      Select the resource group to which the IP address pool belongs.

      The resource group must be a resource group that is created in Resource Management by the current Alibaba Cloud account. For more information, see Create a resource group.

      Tag

      Add a tag to the IP address pool.

      Specify Tag Key and Tag Value.

      Description

      Enter a description for the IP address pool.

    2. In the dialog box that appears, check the status of the IP address pool and click Disable.

    3. On the IP Address Pool page, find the IP address pool to which you want to add a CIDR block and click Add CIDR Block in the Actions column.

    4. On the CIDR Blocks tab of the details page, click Add CIDR Block.

    5. In the Add CIDR Block dialog box, select a method to add CIDR blocks and click OK.

      • Select Mask and select a mask from the drop-down list.

        If you select Mask, the system can automatically create a CIDR block. The subnet mask must be 24 to 28 bits in length.

      • If you select Destination CIDR Block, you need to enter a CIDR block.

        You can add only an IPv4 CIDR block. The CIDR block cannot start with 0 and the subnet mask must be 23 to 30 bits in length.

        Note

        If you select Destination CIDR Block, you can contact your account manager to request a specific CIDR block. You can also use an on-premises CIDR block. Make sure that the on-premises CIDR block is migrated to the cloud before you use it. For more information, see Bring your public IP address range to Alibaba Cloud.

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.

  1. Log on to the Elastic IP Address console .
  2. On the Elastic IP Addresses page, click Create EIP.

  3. On the Elastic IP page, configure the following parameters, click Buy Now, and then complete the payment.

    This topic describes only the key parameters. For more information, see Apply for an EIP.

    Parameter

    Description

    Billing Method

    Only pay-as-you-go EIPs support the IP address pool feature. In this example, Pay-As-You-Go is selected.

    Region

    The region in which you want to create the EIP.

    You can associate the EIP with a cloud resource such as an Elastic Compute Service (ECS) instance, a NAT gateway, a Classic Load Balancer (CLB) instance, a high-availability virtual IP address (HAVIP), or a secondary elastic network interface (ENI). Make sure that the EIP and the cloud resource are deployed in the same region.

    Line Type

    Select a line type for the EIP.

    • BGP (Multi-ISP): provides premium BGP lines across the world. BGP lines from different ISPs are used at the same time and the optimal BGP line is automatically selected to ensure network stability. Supported ISPs are China Telecom, China Unicom, China Mobile, China Mobile Tietong, China Netcom, CERNET, NRTA, Dr. Peng Group, and Founder Broadband.

    • BGP (Multi-ISP) Pro: BGP (Multi-ISP) Pro improves the efficiency of data transmission from regions outside the Chinese mainland to the Chinese mainland. Compared with BGP (Multi-ISP), BGP (Multi-ISP) Pro establishes cross-border connections by using Chinese mainland ISP services to provide services to users in the Chinese mainland, excluding data centers. This reduces network latency.

      Note

      The following regions support BGP (Multi-ISP) Pro: China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).

    Make sure that the line type of the EIP is the same as the line type of the IP address pool that you want to select.

    Security Protection

    Select an edition of Anti-DDoS based on your requirements.

    • Default: specifies Anti-DDoS Origin Basic, which can mitigate DDoS attacks at 5 Gbit/s or lower. For more information, see What is Anti-DDoS Origin?

    • Anti-DDoS Pro/Premium: specifies Anti-DDoS Pro/Premium, which can mitigate DDoS attacks at the Tbit/s level.

      Important

      If you use Anti-DDoS Pro/Premium to protect your EIPs, take note of the following items:

    IP Address Pool

    Select an IP address pool based on your business requirements.

    • By default, Default is selected. The system assigns an IP address from the public IP address pool of Alibaba Cloud.

    • You can select another IP address pool from the drop-down list. The system assigns an IP address from the selected IP address pool.

    Make sure that the EIPs and the IP address pool use the same security protection type.

(Optional) Request a quota increase

  • If the maximum number of IP addresses supported by a region cannot meet your requirements, you can request a quota increase. For more information, see Request a quota increase.

  • If the maximum number of IP address pools supported by a region cannot meet your requirements, contact your account manager.

More operations

Operation

Description

Modify an IP address pool

  1. On the IP Address Pool page, find the IP address pool that you want to modify and click Modify in the Actions column.

  2. On the Modify IP Address Pool page, modify the name and description of the IP address pool, and click Submit.

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.

  1. On the IP Address Pool page, find the IP address pool that you want to delete and click Delete in the Actions column.

  2. In the message that appears, click OK.

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.

  1. On the IP Address Pool page, find the IP address pool that you want to manage and click the ID of the IP address pool.

  2. On the details page of the IP address pool, find the CIDR block that you want to delete and click Delete in the Actions column.

  3. In the message that appears, click OK.

References