You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
EIP
Associating EIPs
Copy page
Download PDF
Associating EIPs
Applicable scenario​
You can associate an ECS instance with an Elastic IP Address (EIP) to enable the instance to access the internet.​
This topic describes how to associate an ECS instance with an EIP (specifically, the "ECS instance" here refers to the primary private IPv4 address of the primary network interface associated with the instance).​
tip​
To associate an EIP with the secondary private IPv4 address of the primary network interface or the private IPv4 address of a secondary network interface for an ECS instance, refer to Associating an EIP with a network interface.​
Prerequisite​
You have not associated the ECS instance (the primary private IPv4 address of the instance primary network interface) with an EIP.​
Procedure​
  1. Log in to the ECS console. ​
  1. In the left-side navigation pane, select "Instances & Images > Instances".​
  1. In the top menu bar, select the region and project of the target instance.​
  1. On the Instances page, select "··· > Network and security group > Associate Elastic IP Address" on the right side of the target instance. Then, the "Bind Elastic IP address (EIP)" window pops up.​
  • You can also click the instance name to go to the instance overview page. Then, in the EIP section, click the "Associate Elastic IP Address" button.​
  1. Select the target EIP and click the "Attach" button to complete the operation.​
tip​
To associate an EIP with an ECS, you can perform this action in the ECS console or EIP console. For details, refer to Associating cloud resources.​
Operation results​
The instance page will display the associated EIP of the selected instance.​
If an ECS instance cannot connect to the Internet after you associate an EIP with it, refer to Why can't an ECS instance associated with an EIP connect to the Internet?.​
After you associate an ECS instance with an EIP, their relations are as follows:​
  • EIP becomes a sub-resource of the ECS instance, such as the system volume, data volume, and primary network interface of the instance. When you transfer an ECS instance to another project, the associated EIP will change to that project accordingly.​
  • When you renew or unsubscribe from a subscription-based instance, you can select whether to renew or unsubscribe from the associated subscription-based EIP.​
  • When you renew or unsubscribe from a subscription-based EIP, you can select whether to renew or unsubscribe from the associated subscription-based instance.​
Related document​
AssociateEipAddress: Associate EIPs with cloud resources.​
​
Last updated: 2026.06.18 17:49:49