You can detach a secondary ENI, but not the primary ENI, from an instance.

Limits

To detach a secondary ENI from an instance, you have the following limits:

  • The secondary ENI must be in the InUse status.
  • The instance must be in the Stopped or Running status.

Prerequisites

Your ENI is attached to an instance. Before you detach an ENI from an instance, the instance must be in the Stopped or Running status.

Procedure

To detach a secondary ENI from an instance, follow these steps:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, selectNetworks & Security > Network Interfaces.
  3. Select a region.
  4. Find an ENI in the InUse status, and in the Actions column, click Detach.
  5. In the Detach dialog box, confirm the information, and then click OK.

In the Network Interfaces page, refresh the table. When the selected ENI is in the Available status, it is successfully detached from the instance.

Follow-up operations

After an ENI is detached from an instance, you can perform these operations: