All Products
Search
Document Center

Elastic Compute Service:unbind a secondary ENI

Last Updated:Mar 14, 2024

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

    The following table describes the instance types. For more information, see Overview of instance families.

    Instance family

    Instance type

    s6, shared standard instance family

    ecs.s6-c1m1.small, ecs.s6-c1m2.large, ecs.s6-c1m2.small, ecs.s6-c1m4.large, and ecs.s6-c1m4.small

    t6, burstable instance family

    ecs.t6-c1m1.large, ecs.t6-c1m2.large, ecs.t6-c1m4.large, ecs.t6-c2m1.large, and ecs.t6-c4m1.large

    t5, burstable instance family

    ecs.t5-c1m1.large, ecs.t5-c1m2.large, ecs.t5-c1m4.large, ecs.t5-lc1m1.small, ecs.t5-lc1m2.large, ecs.t5-lc1m2.small, ecs.t5-lc1m4.large, and ecs.t5-lc2m1.nano

    Previous-generation shared instance families xn4, n4, mn4, and e4

    • ecs.xn4.small

    • ecs.n4.small and ecs.n4.large

    • ecs.mn4.small and ecs.mn4.large

    • ecs.e4.small and ecs.e4.large

Procedure

  1. Log on to the ECS console.

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

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Find a secondary ENI that is in the Bound state and click Unbind from Instance in the Operation column.

  5. 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.

Note

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: