Updated on 2024-04-18 GMT+08:00

Assigning an EIP

Scenarios

Assign an EIP for a cloud resource you want to make it accessible over the Internet.

If you want to assign an EIP that you have released or assign a specific EIP, you can use APIs. When assigning an EIP, set the value of ip_address to the IP address that you want to assign. For details, see section "Assigning an EIP" in Elastic IP API Reference.

  • If the EIP has been assigned to another user, you will fail to assign your required EIP.
  • The management console does not support assigning a specific EIP.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Network > Elastic IP.
  4. On the displayed page, click Assign EIP.
  5. Set the parameters as prompted.
    Table 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Region

    Regions are geographic areas that are physically isolated from each other. The networks inside different regions are not connected to each other, so resources cannot be shared across different regions. For lower network latency and faster access to your resources, select the region nearest you. The region selected for the EIP is its geographical location.

    N/A

    EIP Type

    Dynamic BGP: Dynamic BGP provides automatic failover and chooses the optimal path when a network connection fails.

    Dynamic BGP

    Billed By

    The following bandwidth types are available:
    • Bandwidth: You specify a maximum bandwidth and pay for the amount of time you use the bandwidth. This is suitable for scenarios with heavy or stable traffic.
    • Traffic: You specify a maximum bandwidth and pay for the total traffic you use. This is suitable for scenarios with light or sharply fluctuating traffic.
    • Shared Bandwidth: The bandwidth can be shared by multiple EIPs and is suitable for scenarios with staggered traffic.

    Bandwidth

    Bandwidth

    The bandwidth size in Mbit/s.

    100

    Bandwidth Name

    The name of the bandwidth.

    bandwidth

    Tag

    The EIP tags. Each tag contains a key and value pair.

    The tag key and value must meet the requirements listed in Table 3.

    • Key: Ipv4_key1
    • Value: 3005eip

    Quantity

    The number of EIPs you want to purchase.

    1

    Enterprise Project

    The enterprise project that the EIP belongs to.

    An enterprise project lets you manage cloud resources and personnel by enterprise project. The default project is default.

    For details about creating and managing enterprise projects, see the Enterprise Management User Guide.

    default

    Table 2 Parameter descriptions

    Parameter

    Description

    Example Value

    Region

    Regions are geographic areas that are physically isolated from each other. The networks inside different regions are not connected to each other, so resources cannot be shared across different regions. For lower network latency and faster access to your resources, select the region nearest you. The region selected for the EIP is its geographical location.

    -

    Bandwidth

    The bandwidth size in Mbit/s.

    100

    Bandwidth Name

    The name of the bandwidth.

    bandwidth

    Table 3 EIP tag requirements

    Parameter

    Requirement

    Example Value

    Key

    • Cannot be left blank.
    • Must be unique for each EIP.
    • Can contain a maximum of 36 characters.
    • Can contain letters, digits, underscores (_), and hyphens (-).

    Ipv4_key1

    Value

    • Can contain a maximum of 43 characters.
    • Can contain letters, digits, underscores (_), periods (.), and hyphens (-).

    3005eip

  6. Click Create Now.
  7. Click Submit.