If an Elastic Compute Service (ECS) instance no longer needs a secondary elastic network interface (ENI), you can unbind the secondary ENI from the instance. This topic describes how to unbind a secondary 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.
Instance types for which instances must be in the Stopped state
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Find a secondary ENI that is in the Bound state and click Unbind from Instance in the Operation column.
In the Unbind from Instance message, confirm the information and click Confirm.
If the status of the ENI changes to to be bound after you refresh the ENI list, the ENI is unbound from the instance.
You can also call the DetachNetworkInterface operation to unbind a secondary ENI from an ECS instance.
References
You can perform the following operations on a secondary ENI that is in the to be bound state:
Bind the secondary ENI to an instance. For more information, see Bind a secondary ENI.
Delete the secondary ENI. For more information, see Delete a secondary ENI.
Modify the attributes of the secondary ENI. For more information, see Modify the attributes of an ENI.
Modify the tags of the secondary ENI. For more information, see Modify the tags of an ENI.