All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Modify private IP addresses

Last updated:2021-08-04 11:26:32

You can modify the private IP addresses of your primary and secondary ENIs.

Prerequisites

If the KEC instance has been configured with an EIP, you must detach the EIP first. Otherwise, the private IP addresses cannot be modified.

Procedure

  1. Log in to the KEC console. The KEC instance page appears by default.
  2. Choose one of the following methods to go to the Change Network Configuration page:

    • In the Operation column corresponding to the target instance, choose More > Network/Security Group > Change Network Configuration.

    • Click the instance name or ID to go to the Instance Detail page, and then choose More > Network/Security Group > Change Network Configuration.
  3. Configure the following parameters:

    • Select ENI: Select the ENI corresponding to the new private IP address. Options include Primary ENI and Secondary ENI.
    • VPC and Associated Subnet: Select the VPC and subnet containing the new private IP address.
    • Private IP: Enter or select a new private IP address.
    • DNS1 and DNS2: Configure DNS addresses.
  4. Click Next.

  5. Set the security group and then click OK.

Next steps

After the private IP address is changed, you need to enter a command on the instance to update the address.

For Linux instances, perform the following operations:

  1. Enter "dhclient -r" to release the previous IP address.
  2. Enter "dhclient" to obtain the new IP address.
  3. Enter "ifconfig -a" to view the system IP address.

For Windows instances, perform the following operations:

  1. Press the "Windows" and the "r" keys on your keyboard at the same time to launch the "Run" dialog box.
  2. Enter "cmd" and click "OK" to enter the command line interface.
  3. Enter "ipconfig/release" to release the previous IP address.
  4. Enter "ipconfig/renew" to renew the current IP address.
  5. Enter ipconfig to view the system IP address.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback