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

Binding an EIP to an Instance

Procedure

Binding an EIP to an ECS or a virtual IP address

  1. In the EIP list, locate the row that contains the EIP, and click Bind.
  2. Select the instance.
  3. 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 fixed public IP address or any other EIP.
    • 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.

Binding an EIP to a NAT gateway

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. Sections "Allowing a Private Network to Access the Internet Using SNAT" and "Allowing Internet Users to Access a Service in a Private Network Using DNAT" in the NAT Gateway User Guide.

Binding an EIP to a load balancer

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 EIP" in Elastic Load Balance User Guide.