You can only detach a secondary ENI from an instance. You cannot detach the primary ENI.

Limits

Before you detach a secondary ENI from an instance, note the following limits:

  • The secondary ENI must be in the Bound state.
  • The instance to which the ENI belongs must be in the Stopped or Running state.

Prerequisites

The secondary ENI is attached to an instance. Before you detach a secondary ENI from an instance, the instance must be in the Stopped or Running state.

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, choose Network & Security > ENI.
  3. Find the target ENI, and in the Actions column, click Unbind.
  4. In the displayed dialog box, confirm the information, and then click OK.

After, in the Network Interfaces page, refresh the table. When the selected ENI is in the Available state, it is detached from the instance.

What to do next

After an ENI is detached from an instance, you can: