You can attach an ENI to an instance.

This topic describes how to attach an ENI to an instance in the ECS console.

Limits

To attach an ENI to an instance, you have the following limits:

  • You can only attach a secondary ENI to an instance.
  • The ENI must be in the Available status.
  • The instance must be in the Stopped or Running status.
  • You can only attach an ENI to a VPC-Connected ECS instance, and they must be in the same VPC.
  • The VSwitches of the ENI and the instance can be different, but they must be in the same zone.
  • An ENI can be attached to an I/O optimized ECS instance only.
  • An ENI can only be attached to one VPC-Connected ECS instance at a time. However, a VPC-Connected ECS instance can be associated with multiple ENIs. For more information about the maximum number of ENIs that can be attached to one instance, see instance type families.

Prerequisites

Before you attach an ENI to an instance, finish the following operations:

  • Create an ENI.
  • Make sure the ENI is in the Available status.
  • Make sure your instance can be associated with secondary ENIs, and the instance is in the Stopped or Running status. For the number of ENIs that can be attached to each instance type, see the instance type families.

Procedure

To attach an ENI to an instance, follow these steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, select Networks and Security > ENI.
  3. Select a region.
  4. Find an available ENI, and in the Actions column, click Bind to Instance.
  5. In the Bind to Instance dialog box, after selecting an instance, click OK.

In the Network Interfaces page, refresh the table. When the selected ENI is in the Bound status, it is successfully attached to the instance.

What to do next

After an ENI is attached to an instance, you can: