All Products
Search
Document Center

Elastic Compute Service:Unbind an ENI

Last Updated:Sep 21, 2023

If an Elastic Compute Service (ECS) instance no longer needs a secondary elastic network interface (ENI), you can unbind the ENI from the instance. This topic describes how to unbind an ENI from an ECS instance.

Prerequisites

  • The ENI that you want to unbind from an instance is a secondary ENI. Primary ENIs cannot be unbound from instances.

  • The instance from which you want to unbind the 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 information about the instance types, see the "Instance types for which instances must be in the Stopped state" section of the "Bind an ENI" topic.

Procedure

Unbind an ENI in the ECS console

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Network & Security > ENIs.

  3. In the upper-left corner of the top navigation bar, select a region. 地域

  4. Find a secondary ENI that is in the InUse state 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 by calling an API operation

Call the DetachNetworkInterface operation with the NetworkInterfaceId parameter specified to unbind an ENI from an instance.