Skip to main content

Associate an EIP with an ECS instance

Overview

This topic describes how to associate an elastic IP address (EIP) with an Elastic Compute Service (ECS) instance that is deployed in a virtual private cloud (VPC). After the ECS instance is associated with an EIP, the ECS instance can communicate with the Internet.

Prerequisites

An ECS instance is required. For details, see the CRE User Guide - Creating an ECS Instance for step-by-step instructions.

Procedure

  1. On the EIP page, click the Binding Resource button in the operation column. fg-dc-eip-3.3-1
  2. On the Bind elastic public network IP to resources section, configure the parameters.
ParameterDescription
Network TypeSelect ECS Instance.
ModeSelect the mode in which you want to associate the EIP.
You can select only NAT Mode. In NAT mode:
● The private IP address and public IP address of the ECS instance with which the EIP is associated are available for use.
● The EIP is not displayed in the operating system. To query the EIP of the ECS instance, call the DescribeInstances operation. The EIP does not support protocols that are managed by NAT application layer gateways ( ALGs ), such as H.323, Session Initiation Protocol (SIP), Domain Network System (DNS), and Real Time Streaming Protocol (RTSP).
Select an instance to associate.Select the ECS instance with which you want to associate the EIP.
Make sure that the following requirements are met:
● The ECS instance is deployed in a VPC.
● The ECS instance is in the Running or Stopped state.
● The ECS instance and the EIP are created in the same region.
● The ECS instance is not assigned a static public IP address or associated with an EIP.
Note Each ECS instance can be associated only with one EIP.

fg-dc-eip-3.3-2
fg-dc-eip-3.3-3

  1. On the Bind elastic public network IP to resources section, click the OK button.

  2. Once the IP address is successfully bound, its status has been updated to Bind.

    fg-dc-eip-3.3-4