Updated on 2023-09-26 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

After read/write splitting is enabled, the floating IP addresses of primary DB instances and read replicas cannot be changed.

Changing the floating IP address will interrupt the database connection. You are advised to change a floating IP address during off-peak hours.

Procedure

When you buy a DB instance, select a VPC and subnet on the Buy DB Instance page. Then, a floating IP address will be automatically assigned to your 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 DB instance name.
  5. In the Connection Information area on the Basic Information page, click Change next to the Floating IP Address field.

    Alternatively, in the navigation pane on the left, choose Connectivity & Security. In the Connection Information area, click Change next to 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 Identity and Access Management User Guide.