Virtual Private CloudVirtual Private Cloud

Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Cloud Certificate Manager
Anti-DDoS Service
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Cloud Communications
Message & SMS
Cloud Ecosystem
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
Intelligent EdgeFabric
SDK Developer Guide
API Request Signing Guide
Koo Command Line Interface
Help Center> Virtual Private Cloud> User Guide> EIP> Assigning an EIP and Binding It to an ECS
Updated at: Apr 19, 2022 GMT+08:00

Assigning an EIP and Binding It to an ECS


You can assign an EIP and bind it to an ECS so that the ECS can access the Internet.

Assigning an EIP

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



    Example Value

    Billing Mode

    The following billing modes are available:

    • Yearly/Monthly
    • Pay-per-use



    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.

    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 for traffic from Hong Kong (China) and regions outside China to the Chinese mainland. (This parameter is available only in CN-Hong Kong.)

    For details, see What Are the Differences Between Static BGP and Dynamic BGP?

    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.



    The bandwidth size in Mbit/s.


    EIP Name

    The EIP name.


    Advanced Settings

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


    Bandwidth Name

    The name of the bandwidth.



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

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

    • Key: Ipv4_key1
    • Value:


    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


    The number of EIPs you want to purchase.

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


    Enterprise Project

    The enterprise project to which the EIP belongs.

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


    Table 2 EIP tag requirements



    Example Value


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



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

    • 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.

Binding an EIP

  1. On the EIPs page, locate the row that contains the target EIP, and click Bind.
  2. Select the instance to which you want to bind the EIP.
  3. Click OK.

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel