You can revoke one or more secondary private IP addresses from an Elastic Network Interface (ENI) when the ENI no longer needs them. You cannot revoke the primary private IP address.

Prerequisites

Before you revoke secondary private IP addresses from an ENI, make sure that the following requirements have been met.
  • At least one secondary private IP address has been assigned to the ENI. For more information about how to assign secondary private IP addresses to an ENI, see Assign a secondary private IP address.
  • The ENI must be in the Available (Available) or Bound (InUse) state.
  • If you want to revoke multiple secondary private IP addresses from a primary ENI, the ECS instance to which the primary ENI is bound must be in the Running (Running) or Stopped (Stopped) state.

Background information

Limits: The primary private IP address assigned to an ENI cannot be revoked.

Procedure

  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. On the Network Interfaces page, find the target ENI. Click Manage Secondary Private IP Address in the Actions column.
  5. In the Manage Secondary Private IP Address dialog box that appears, click Unassign next to the secondary private IP address that you want to revoke. You can revoke multiple secondary private IP addresses by clicking Unassign next to them.
  6. Click OK.