Binding or Unbinding an EIP
Scenarios
After EIPs are assigned, you can bind them to resources such as ECSs, BMSs, virtual IP addresses, NAT gateways, and load balancers to allow them to access the Internet.
If your instance no longer requires an EIP, you can unbind the EIP from it. To bind an EIP to a new instance, you need to first unbind it from the current one.
If you do not release the pay-per-use EIP after unbinding it, the EIP will be billed. For details, see Releasing or Unsubscribing From an EIP.
Notes and Constraints
- An EIP can only be bound to an instance from its same region.
- An EIP can only be bound to an instance from its same account.
- An EIP cannot be bound to a frozen instance.
- An EIP cannot be unbound if its server is suspected of violations and the EIP is frozen by the national supervision department.
Binding an EIP to an Instance
Bind EIPs to resources such as ECSs, BMSs, virtual IP addresses, NAT gateways, and load balancers to allow them to access the Internet.
- In the EIP list, locate the row that contains the EIP, and click Bind.
- Select the instance.
- Click OK.
To bind an instance to an EIP:
- If the instance is an ECS:
- The ECS must be in the running or stopped status.
- The ECS must be in the same region as that of the EIP.
- The ECS has no EIP bound to it.
- If the instance is a virtual IP address:
- The virtual IP address must be in the same region as that of the EIP.
- The virtual IP address must be in the available or assigned status.
- If the instance is a BMS:
- If the instance is an ECS:
If you want to bind a NAT gateway to an EIP, the NAT gateway must be in the same region as that of the EIP. After an EIP is bound to a NAT gateway, ECSs associated with this gateway can share the EIP to access the Internet or provide services accessible from the Internet.
You can bind an EIP to a NAT gateway by configuring SNAT and DNAT rules for the gateway. For details, see Allowing a Private Network to Access the Internet Using SNAT and Allowing Internet Users to Access a Service in a Private Network Using DNAT.
If you want to bind a load balancer to an EIP, the load balancer must be in the same region as that of the EIP. Then, the load balancer can receive requests over the Internet. For details, see "Binding or Unbinding an IPv4 EIP" in the Elastic Load Balance User Guide.
Unbinding an EIP from an Instance
If an EIP is no longer required, you can unbind it from your instance.
Unbinding a single EIP
- Go to the EIP list page.
- On the displayed page, locate the row that contains the target EIP, and click Unbind in the Operation column.
A confirmation dialog box is displayed.
- Click Yes in the displayed dialog box.
In the EIP list, the target EIP has no associated instance.
Unbinding multiple EIPs at a time
- Go to the EIP list page.
- On the displayed page, select the EIPs to be unbound.
- In the upper left corner of the EIP list, click Unbind.
A confirmation dialog box is displayed.
- Click Yes in the displayed dialog box.
In the EIP list, the target EIPs have no associated instances.
You can unbind an EIP from a NAT gateway by deleting the SNAT and DNAT rules. For details, see Deleting a DNAT Rule and Deleting an SNAT Rule.
You can unbind an EIP from a load balancer on the ELB console. For details, see section "Binding or Unbinding an IPv4 EIP" in the Elastic Load Balance User Guide.

If a pay-per-use EIP is unbound from an instance, the EIP will be billed to keep it allocated to your account unless it is released.
If an EIP billed by bandwidth is unbound from an instance, the bandwidth will continue to be billed.
No Instance Available for EIP Binding
- There are no instances available when you want to bind an instance to an EIP.
You have instances, but an EIP cannot be bound to any of them.
- An EIP cannot be bound to an instance from a different region.
- An EIP cannot be bound to an instance from a different account.
- The instance is frozen and cannot have an EIP bound.
There are no instances.
Create an ECS, create a BMS, or assign a virtual IP address.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.