Updated on 2024-04-19 GMT+08:00

Viewing and Changing a Floating IP Address

Scenarios

You can change floating IP addresses after migrating on-premises databases or other cloud databases to RDS.

Constraints

To use floating IP addresses, contact customer service to apply for the required permissions.

After a floating IP address is changed, the domain name needs to be resolved again. This operation takes several minutes and may interrupt database connections. Therefore, you are advised to change a floating IP address during off-peak hours.

Only floating IPv4 addresses can be changed.

Procedure

You can use an automatically-assigned IP address when purchasing a DB instance.

You can change the floating IP address of an existing DB instance.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, click the target DB instance.
  5. In the Connection Information area on the Basic Information page, click Change in the Floating IP Address field.

    Figure 1 Floating IP address

  6. In the displayed dialog box, check the number of in-use IP addresses. If the in-use IP addresses are less than 254, there are unused floating IP addresses.

    Figure 2 Changing a floating IP address

  7. Enter an available IP address and click Yes.

    An in-use IP address cannot be used as the new floating IP address of the DB instance.

  8. If you have enabled operation protection, click Send Code in the displayed Identity Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication improves the security of your account and cloud product. For details about how to enable operation protection, see the Identity and Access Management User Guide.