An Elastic Network Interface (ENI) is a virtual network interface that can be attached to an ECS instance in a VPC. When you add backend servers to a guaranteed-performance Server Load Balancer (SLB) instance, you can choose to add the primary and secondary private IP addresses of ENIs if the ENIs are associated with ECS instances.

Prerequisites

The ECS instances are associated with ENIs.

For more information about how to associate an ENI with an ECS instance, see Attach an ENI.



Note Only guaranteed-performance SLB instances support adding the primary and secondary private IP addresses of ENIs to backend servers.

Procedure

  1. Log on to the SLB console.
  2. In the left-side navigation pane, click Server Load Balancer. On the Server Load Balancer page, click the ID of the target SLB instance.
  3. Select the backend server group type by clicking the corresponding tab. Default server groups, VServer groups, and active/standby server groups all support adding the primary and secondary private IP addresses of ENIs. In this topic, click the Default Server Group tab and then click Add.
  4. On the Available Servers page, turn on Advanced Mode and click to select ENIs and its secondary private IP addresses.


  5. Click Next: Set Weight and Port to set the weights and port numbers of the added backend servers.
  6. Click OK and you can see the added ENIs and its private IP addresses on the Default Server Group tab.

    If the default server group is added for a listener, you can see the backend servers added with ENIs and secondary private IP addresses on the Server Load Balancer page as follows:

    where,
    • : Represents an ECS instance.
    • : Represents an ENI and its secondary private IP address.