An elastic network interface (ENI) is a virtual network interface that can be attached to an Elastic Compute Service (ECS) instance in a virtual private cloud (VPC). ENIs can improve the availability of clusters and offer cost savings in service failovers and fine-grained network management. You can connect a backend server to a Classic Load Balancer (CLB) instance by specifying the primary or secondary IP address of the ENI used by the backend server.
For more information about how to attach an ENI to an ECS instance, see Bind an ENI.
- You can specify the primary and secondary ENIs of ECS instances only for high-performance CLB instances.
- You can specify only secondary ENIs in the console. To specify primary ENIs, make an API request.
- Log on to the CLB console.
- In the top navigation bar, select the region where the CLB instance is deployed.
- On the Instances page, click the ID of the CLB instance for which you want to create a backend server group.
- Click the VServer Groups, Default Server Group, or Primary/Secondary Server Groups tab. Note You can add the primary and secondary ENIs of ECS instances to the default server group, vServer group, or primary/secondary server group. A vServer is used in this example.
- On the VServer Groups tab, click Create VServer Group.
- On the Create VServer Group page, click Add.
- In the Select Servers wizard page, select Elastic Compute Service (ECS)/Elastic Network Interface (ENI) from the Select Backend Server Type drop-down list, and turn on Advanced Mode.
- Select the backend servers that you want to add to the vServer group and click Next.
- In the Configure Ports and Weights wizard page, specify the ports and weights of the backend servers and click Add.
After you add backend servers to the server group of the listener, you can view the backend servers and ENIs that you added on the Instances page.where:
- indicates an ECS instance.
- indicates a primary or secondary ENI.