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.
Assigning an EIP
- Log in to the management console.
- Click
in the upper left corner and choose Network > 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. The region selected for the EIP is its geographical location.
N/A
EIP Type
- Dynamic BGP: Dynamic BGP provides automatic failover and chooses the optimal path when a network connection fails.
The selected EIP type cannot be changed after the EIP is assigned.
Dynamic BGP
Billed By
The following bandwidth types are available:
- Bandwidth: You specify a maximum bandwidth and pay for the amount of time you use the bandwidth. This is suitable for scenarios with heavy or stable traffic.
- Traffic: You specify a maximum bandwidth and pay for the total traffic you use. This is suitable for scenarios with light or sharply fluctuating traffic.
- Shared Bandwidth: The bandwidth can be shared by multiple EIPs and is suitable for scenarios with staggered traffic.
Bandwidth
Bandwidth
The bandwidth size in Mbit/s.
100
EIP Name
The EIP name.
eip-test
Enterprise Project
The enterprise project that the EIP belongs to.
An enterprise project facilitates project-level management and grouping of cloud resources and users. The name of the default project is default.
default
Advanced Settings
Click the drop-down arrow to configure parameters, including the bandwidth name.
N/A
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: 3005eip
Quantity
The number of EIPs you want to assign.
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 letters, digits, underscores (_), and hyphens (-).
Ipv4_key1
Value
- Can contain a maximum of 43 characters.
- Can contain letters, digits, underscores (_), periods (.), and hyphens (-).
eip-01
- 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 that you want to bind the EIP to.
- Click OK.
- Scenarios
- Assigning an EIP
- Binding an EIP