Compared with BGP (Multi-ISP), BGP (Multi-ISP) Pro lines optimize data transmission to China and improve connection quality for international services. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to users in mainland China (excluding data centers), cross-border connections are established by using mainland China ISP services. This reduces network latency. You can associate a BGP (Multi-ISP) Pro elastic IP address (EIP) with an Elastic Compute Service (ECS) instance. Then, users in mainland China can access web services deployed in the China (Hong Kong) region with low latency.
Step 1: Purchase a BGP (Multi-ISP) Pro EIP
The following example describes how to purchase a BGP (Multi-ISP) Pro EIP that is billed on a subscription basis.
- Log on to the Elastic IP Address console.
- On the Elastic IP Addresses page, click Create EIP.
- On the buy page, select Subscription, and set the following parameters.
- Region: Select the region where you want to create the EIP. In this example, China (Hong Kong) is selected.
- Connection Type: Select the line type.
In this example, BGP (Multi-ISP) Pro is selected.
- Network Type: Select a network type. Internet is selected in this example.
- Bandwidth value: Select the maximum bandwidth value as needed. 10 Mbit/s is selected in this example.
- Name: Enter a name for the EIP.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
- Resource Group: Select the resource group to which the EIP belongs.
- Quantity: Select the number of EIPs that you want to buy.
- Service Time: Select a subscription duration.
- Click Buy Now and complete the payment.
- Click Console and return to the Elastic IP Addresses page.
Step 2: Associate the EIP with an ECS instance
You can associate the EIP with an ECS instance that is deployed in a virtual private cloud (VPC). ECS instances can communicate with the Internet after they are associated with elastic IP addresses.
Perform the following steps to associate the EIP with an ECS instance:
- On the Elastic IP Addresses page, find the EIP that you created in Step 1: Purchase a BGP (Multi-ISP) Pro EIP, and click Bind Resource in the Actions column.
- In the Bind Elastic IP Address to Resources dialog box, set the following parameters.
- Instance Type: Select the type of the instance that you want to associate with the EIP. ECS Instance is selected in this example.
- Binding Mode: Select a binding mode.
Only Normal is supported. In Normal mode:
- Both the private and public IP addresses of the ECS instance are available.
- The EIP is not displayed in the operating system. You must call the DescribeInstances operation to query the public IP address of the ECS instance. For more information, see DescribeInstances.
- The EIP does not support NAT application layer gateway (ALG) protocols such as H.323, Session Initiation Protocol (SIP), Domain Name System (DNS), Real Time Streaming Protocol (RTSP), or Trivial File Transfer Protocol (TFTP).
- Select an Instance to Bind: Select an ECS instance to be associated with the EIP.
- Click OK.
Step 3: Test the network latency
After you associate the EIP with the ECS instance, you can test the network latency between a client in mainland China and the ECS instance that is deployed in the China (Hong Kong) region.
- Open the CLI on an on-premises machine that is deployed in mainland China.
- Run the
pingthe EIP that is associated with the ECS instance.The test result shows that the network latency is reduced when users in mainland China use the BGP (Multi-ISP) Pro EIP to access the ECS instance.Note The preceding test result is for reference only. The actual network latency varies based on the network quality of the ISP.
Why am I unable to associate an EIP with an ECS instance?
- You can associate an EIP with only one ECS instance that is deployed in a VPC. If the ECS instance is not deployed in a VPC, you cannot associate an EIP with the ECS instance.
- The EIP and ECS instance are deployed in different regions.
- The ECS instance is in a state that does not allow you to associate an EIP with the ECS instance. You can associate an EIP with only an ECS instance that is in the Running or Stopped state.
- The ECS instance is assigned a public IP address or another EIP is associated with the ECS instance.