If your workspace is upgraded from an earlier version of a directory whose ID is in the format of <region ID> + dir + <17 letters and digits>, you can enable Internet access for your cloud desktop by configuring an elastic IP address (EIP) or a NAT gateway. This topic describes how to configure an EIP.

Background information

An EIP is a public IP address that can be purchased and retained as an independent resource. You can associate an EIP with a cloud desktop to enable Internet access. For more information about the billing of EIPs, see Billing.
Note When you configure a cloud desktop to access the Internet, you can use an EIP or a NAT gateway. If you have a large number of cloud desktops within a single directory and all the cloud desktops require Internet access, we recommend that you configure a NAT gateway. This way, you need only to enable one EIP to allow shared bandwidth for all the cloud desktops. For more information, see Configure a NAT gateway.
Perform the following operations to configure an EIP for a cloud desktop:

Step 1: Create an EIP

If you already have an EIP, skip this step and associate your EIP with the cloud desktop. If you do not have an EIP, create one.

  1. Log on to the VPC console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, choose Elastic IP Addresses > Elastic IP Addresses.
  4. On the Elastic IP Addresses page, click Create EIP.
  5. Configure the parameters for the EIP.
    Set the Region and Zone parameter to where the cloud desktop resides. For more information, see Apply for new EIPs.
  6. Confirm the configurations and fees and click Buy Now.

Step 2: Associate the EIP with the cloud desktop

After you associate the EIP with the cloud desktop, the cloud desktop is able to access the Internet.

  1. On the Elastic IP Addresses page of the VPC console, find the EIP that you want to associate and click Bind Resource.
  2. In the Bind Elastic IP Address to Resources dialog box, complete the configurations.
    Configure the following parameters:
    • Instance Type: Select Secondary ENI.
    • Binding mode: Select Normal.
    • Select an instance to bind: Select Primary Private IP Address from the drop-down list, enter the private IP address of the cloud desktop to search for the elastic network interface (ENI) of the cloud desktop, and then select the ENI in the list.
      Note You can check the private IP address of the cloud desktop on the Cloud Desktops page in the Elastic Desktop Service (EDS) console.
  3. Click OK.