Binding an EIP to an Instance
Scenarios
After EIPs are assigned, you can bind them to resources such as ECSs, virtual IP addresses, NAT gateways, and load balancers to allow them to access the Internet.
Procedure
Binding an EIP to an ECS or a virtual IP address
- In the EIP list, locate the row that contains the EIP, and click Bind.
- Select the instance.
- Click OK.Note
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 an ECS:
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 the Elastic Load Balance User Guide.
- Scenarios
- Procedure