Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
20 KiB
Step 3: Assign an EIP and Bind It to an ECS
Scenarios
You can assign an EIP and bind it to an ECS so that the ECS can access the Internet.

- In the eu-de region, if you choose to assign an EIP when you create a dedicated load balancer on the management console or using APIs, EIPs for dedicated load balancers (5_gray) will be assigned.
- Do not bind EIPs of this type to non-dedicated load balancers.
- Do not add EIPs of the dedicated load balancer type and other types to the same shared bandwidth. Otherwise, the bandwidth limit policy will not take effect.
Assigning an EIP
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- On the console homepage, under Network, click Elastic IP.
- On the displayed page, click Assign EIP.
- Set the parameters as prompted.
Table 1 Parameter descriptions Parameter
Description
Example Value
Region
Regions are geographic areas that are physically isolated from each other. The networks inside different regions are not connected to each other, so resources cannot be shared across different regions. For lower network latency and faster access to your resources, select the region nearest you.
eu-de
EIP Type
- Dynamic BGP: Dynamic BGP provides automatic failover and chooses the optimal path when a network connection fails.
- Mail BGP: EIPs with port 25, 465, or 587 enabled are used.
The selected EIP type cannot be changed after the EIP is assigned.
Dynamic BGP
Bandwidth
The bandwidth size in Mbit/s.
100
Bandwidth Name
The name of the bandwidth.
bandwidth
Tag
The EIP tags. Each tag contains a key and value pair.
The tag key and value must meet the requirements listed in Table 2.
- Key: Ipv4_key1
- Value: 192.168.12.10
Quantity
The number of EIPs you want to purchase.
1
Table 2 EIP tag requirements Parameter
Requirement
Example Value
Key
- Cannot be left blank.
- Must be unique for each EIP.
- Can contain a maximum of 36 characters.
- Can contain only the following character types:
- Uppercase letters
- Lowercase letters
- Digits
- Special characters, including hyphens (-) and underscores (_)
Ipv4_key1
Value
- Can contain a maximum of 43 characters.
- Can contain only the following character types:
- Uppercase letters
- Lowercase letters
- Digits
- Special characters, including hyphens (-) and underscores (_)
192.168.12.10
- Click Create Now.
- Click Submit.
Binding an EIP
- On the EIPs page, locate the row that contains the target EIP, and click Bind.
- Select the instance to which you want to bind the EIP.
- Click OK.
An IPv6 client on the Internet can access the ECS that has an EIP bound in a VPC. For details about the implementation and constraints, see How Does an IPv6 Client on the Internet Access the ECS That Has an EIP Bound in a VPC?
Follow-Up Procedure
After an ECS with an EIP bound is created, the system generates a domain name in the format of ecs-xx-xx-xx-xx.compute.xxx.com for the EIP by default. xx-xx-xx-xx indicates the EIP, and xxx indicates the domain name of the cloud service provider. You can use the domain name to access the ECS.
- ping -a EIP
- nslookup [-qt=ptr] EIP
- dig -x EIP