This topic describes how to unbind a secondary elastic network interface (ENI) from your Elastic Compute Service (ECS) instance.

Prerequisites

Before you unbind an ENI, make sure that the following requirements are met:
  • The ENI to be unbound is a secondary ENI. Primary ENIs cannot be unbound from instances.
  • The instance from which you want to unbind an ENI is in the Stopped or Running state.
    Note ENIs can be unbound from instances of specific instance types only when the instances are in the Stopped state. For more information about instance types, see the "Instance types for which instances must be in the Stopped state" section in Instance types for which instances must be in the Stopped state.

Background information

After ENIs are created, deleted, bound to instances, or unbound from instances, ENI operation events are triggered. You can use CloudMonitor to set notifications of ENI operation events to obtain the ENI operation results such as whether ENIs are created. For more information, see ENI operation event notifications.

Unbind an ENI on the Network Interfaces page

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > ENIs.
  3. In the top navigation bar, select a region.
  4. Find the ENI in the InUse state that you want to unbind and click Unbind in the Actions column.
  5. In the Unbind message, confirm the information and click OK.
    If the state of the ENI changes to Available after you refresh the ENI list, the ENI is unbound from the instance.

Unbind an ENI on the Security Groups page

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > Security Groups.
  3. In the top navigation bar, select a region.
  4. Find the security group that contains the ENI that you want to unbind and click Manage ENIs in the Actions column.
  5. On the ENIs in Security Group page, find the ENI in the InUse state and click Unbind in the Actions column.
  6. In the Unbind message, confirm the information and click OK.
    If the state of the ENI changes to Available after you refresh the ENI list, the ENI is unbound from the instance.

What to do next

You can perform the following operations on an ENI that is in the available state: