Help Center> Virtual Private Cloud> User Guide (Ankara Region)> Virtual IP Address> Binding a Virtual IP Address to an EIP or ECS
Updated on 2024-04-15 GMT+08:00

Binding a Virtual IP Address to an EIP or ECS

Scenarios

You can use a virtual IP address and an EIP together.

If you bind a virtual IP address to ECSs that work in active/standby pairs and bind an EIP to the virtual IP address, you can access the ECSs over the Internet.

Notes and Constraints

  • A virtual IP address can only be bound to one EIP.
  • Do not bind more than eight virtual IP addresses to an ECS.
  • A virtual IP address can be bound to a maximum of 10 ECSs.

    If a virtual IP address is bound to an ECS, the virtual IP address is also associated with the security group of the ECS. A virtual IP address can be associated with up to 10 security groups.

Binding a Virtual IP Address to an EIP or ECS on the Console

  1. Log in to the management console.
  2. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Virtual Private Cloud > Subnets.

    The Subnets page is displayed.

  4. Click the name with a hyperlink of the subnet that the virtual IP address belongs to.

    The subnet details page is displayed.

  5. On the IP Addresses tab, bind an EIP to the virtual IP address:
    1. Locate the row that contains the virtual IP address and click Bind to EIP in the Operation column.

      The Bind to EIP dialog box is displayed.

    2. Select an EIP and click OK.

      In the virtual IP address list, you can view that the virtual IP address has an EIP bound.

  6. On the IP Addresses tab, bind an instance to the virtual IP address:
    1. Locate the row that contains the virtual IP address and click Bind to Server in the Operation column.

      The Bind to Server dialog box is displayed.

    2. Select an ECS and click OK.

      In the virtual IP address list, you can view that the virtual IP address has an ECS bound.

      • If an ECS has multiple NICs, bind the virtual IP address to the primary NIC.
      • An ECS NIC can have multiple virtual IP addresses bound.