Moving a Secondary Private IP Address to a Different VNIC
Move a secondary private IP address to another VNIC in the same subnet.
Note
Using the CLI or API, you can also move more than one secondary private IP to a VNIC in the same subnet with a single command.
Using the CLI or API, you can also move more than one secondary private IP to a VNIC in the same subnet with a single command.
Use the network vnic assign-private-ip command and required parameters to move a secondary private IP address from one VNIC to another:
oci network vnic assign-private-ip --ip-address IP_address --unassign-if-already-assigned VNIC_OCID --vnic-ip-id destination_VNIC_OCID ... [OPTIONS]Optionally, use the network private-ip bulk-update command and required parameters to move more than one secondary private IP address from one VNIC to another:
oci network private-ip bulk-update --unassign-if-already-assigned --from-json file:// ... [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdatePrivateIp operation to move a private IP address from one VNIC to another.
Optionally, run the BulkUpdatePrivateIps operation to move more than one private IP address from one VNIC to another within a single API call.