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:

    1. In the Compute Cloud@Customer Console navigation menu, select Compute, then select Instances.
    2. 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.
    3. Select the name of the instance.

      The instance details page is displayed.

    4. On the instance details page, under Resources, select Attached VNICs.

      The primary VNIC and any secondary VNICs attached to the instance are displayed.

    5. Select the name of the attached VNIC that has the secondary private IP address object that you want to update.

    6. On the VNIC details page, under Resources, select IP Addresses.

    7. For the secondary private IP address object that you want to update, select the Actions menu (An image of the three dot icon.), then select Edit.

    8. In the Attach Private IP dialog box, update the host name.

    9. 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.