Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Centro de ayuda> Elastic IP> Guía del usuario> EIP> Asignación de un EIP
Actualización más reciente 2022-11-08 GMT+08:00

Asignación de un EIP

Escenarios

Asigne un EIP para un recurso en la nube que desea hacer accesible a través de Internet.

Si desea asignar un EIP que ha liberado o asignar un EIP específico, puede usar APIs. Cuando asigne un EIP, establezca el valor de ip_address en la dirección IP que desea asignar. Para obtener más información, consulta Referencia de la API de Elastic IP.

  • Si el EIP ha sido asignado a otro usuario, no podrá asignar el EIP requerido.
  • La consola de gestión no admite la asignación de un EIP específico.

Procedimiento

  1. Inicie sesión en la consola de gestión.
  2. Haga clic en en la esquina superior izquierda y seleccione la región y el proyecto deseados.
  3. En la página principal de la consola, en Networking, haga clic en Elastic IP.
  4. On the displayed page, click Buy EIP.
  5. Set the parameters as prompted.
    Tabla 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Billing Mode

    The following billing modes are available:

    • Yearly/Monthly
    • Pay-per-use

    Pay-per-use

    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.

    NOTA:

    The geographical location of an EIP purchased in CN North-Ulanqab1 is Beijing.

    CN-Hong Kong

    EIP Type

    • Dynamic BGP: Dynamic BGP provides automatic failover and chooses the optimal path when a network connection fails.
    • Static BGP: Static BGP offers more routing control and protects against route flapping, but an optimal path cannot be selected in real time when a network connection fails.
    • Premium BGP: Premium BGP chooses the optimal path and ensures low-latency and high-quality networks. BGP is used to interconnect with lines of multiple mainstream carriers. Public network connections that feature low latency and high quality are directly established between Chinese mainland and Hong Kong (China). (This parameter is available only in CN-Hong Kong.)

    Dynamic BGP

    Billed By

    This parameter is available only when you set Billing Mode to Pay-per-use.

    • 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. This is suitable for scenarios with staggered traffic.

    Bandwidth

    Bandwidth

    The bandwidth size in Mbit/s.

    100

    EIP Name

    The EIP name.

    eip-test

    Bandwidth Name

    The name of the bandwidth.

    bandwidth

    Enterprise Project

    The enterprise project that the EIP belongs to.

    An enterprise project facilitates project-level management and grouping of cloud resources and users. The name of the default project is default.

    default

    Advanced Settings

    Click the drop-down arrow to configure parameters, including the bandwidth name and tag.

    -

    Tag

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

    The tag key and value must meet the requirements listed in Tabla 2.

    • Key: Ipv4_key1
    • Value: 192.168.12.10

    Monitoring

    Used to monitor the EIP. Enabled by default

    You can use the management console or APIs provided by Cloud Eye to query the metrics and alarms generated for the EIP and bandwidth.

    -

    Required Duration

    The duration for which the purchased EIP will use. The duration must be specified if the Billing Mode is set to Yearly/Monthly.

    1 month

    Quantity

    The number of EIPs you want to purchase.

    The quantity must be specified if the Billing Mode is set to Pay-per-use.

    1

    Tabla 2 Requisitos de la etiqueta EIP

    Parámetro

    Requerimientos

    Valor de ejemplo

    Clave

    • No se puede dejar en blanco.
    • Debe ser único para cada EIP.
    • Puede contener un máximo de 36 caracteres.
    • Puede contener letras, dígitos, guiones bajos (_), y guiones (-).

    Ipv4_key1

    Value

    • Puede contener un máximo de 43 caracteres.
    • Puede contener letras, dígitos, guiones bajos (_), puntos (.) y guiones (-).

    192.168.12.10

    • If you are buying an EIP billed on a pay-per-use basis and you want to use a shared bandwidth, you can only select an existing shared bandwidth from the Bandwidth Name drop-down list. If there are no shared bandwidths to select, purchase a shared bandwidth first.
    • A dedicated bandwidth cannot be changed to a shared bandwidth and vice versa. However, you can purchase shared bandwidth for pay-per-use EIPs.
      • After an EIP is added to a shared bandwidth, the EIP will use the shared bandwidth.
      • After an EIP is removed from the shared bandwidth, the EIP will use the dedicated bandwidth.
  6. Click Next.
  7. Click Submit.

Si hace clic en Buy Shared Bandwidth cuando compra un EIP, también necesita comprar el ancho de banda.