Updating a Secondary Private IP Address
On Compute Cloud@Customer, you can update the hostname and change the IP address of a secondary private IP address object. You can't update a VNIC primary private IP address.
To change the hostname, use the Compute Cloud@Customer Console, CLI, or API as described in this section.
To change the IP address, delete the secondary IP address. Then create a new secondary IP address. See:
- In the Compute Cloud@Customer Console navigation menu, select Compute, then select Instances.
- At the top of the page, select the compartment that contains the instance that has the secondary private IP address object that you want to update.
-
Select the name of the instance.
The instance details page is displayed.
-
On the instance details page, under Resources, select Attached VNICs.
The primary VNIC and any secondary VNICs attached to the instance are displayed.
-
Select the name of the attached VNIC that has the secondary private IP address object that you want to update.
-
On the VNIC details page, under Resources, select IP Addresses.
-
For the secondary private IP address object that you want to update, select the Actions menu (
), then select Edit.
-
In the Attach Private IP dialog box, update the host name.
-
Select Attach IP Address.
Use the oci network private-ip update command and required parameters to change the display name or the hostname for a secondary private IP.
oci network private-ip update [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the UpdatePrivateIp operation to change the display name or the hostname for a secondary private IP.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.