Unassigning Secondary Private IPs from an FNI

You can unassign one or more secondary private IPs from a flexible network interface (FNI) at any time.

You cannot, however, unassign the primary private IP of the FNI.

Unassigning Secondary Private IPs from an FNI Using Cockpit

  1. Click Network/Security > Flexible Network Interfaces.

  2. Click the FNI from which you want to unassign a secondary private IP.
    The FNI is selected.

  3. On the Private IPs tab, select the secondary private IP you want to unassign from the FNI.
    The secondary private IP is selected.

  4. Click Unassign .
    The UNASSIGN PRIVATE IP confirmation dialog box appears.

  5. Click Unassign.
    The secondary IP is unassigned from the FNI.

Unassigning Secondary Private IPs from an FNI Using AWS CLI

To unassign one or more secondary private IPs from an FNI, use the unassign-private-ip-addresses command following this syntax:

Request sample
$ aws ec2 unassign-private-ip-addresses \
  --profile YOUR_PROFILE \
  --network-interface-id eni-12345678 \
  --private-ip-addresses 10.0.0.4 \
  --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • network-interface-id: The ID of the FNI.

  • private-ip-addresses: One or more secondary private IPs you want to unassign from the FNI.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The specified secondary IPs are unassigned from the FNI.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.