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 v1
-
Click Network/Security > Flexible Network Interfaces.
-
Click the FNI from which you want to unassign a secondary private IP.
The FNI is selected. -
On the Private IPs tab, select the secondary private IP you want to unassign from the FNI.
The secondary private IP is selected. -
Click Unassign .
The UNASSIGN PRIVATE IP confirmation dialog box appears. -
Click Unassign.
The secondary IP is unassigned from the FNI.
Unlinking Secondary Private IPs from a NIC Using OSC CLI
See the UnlinkPrivateIps command sample in the documentation of the OUTSCALE API. |
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:
$ 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 Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.