This document describes how to migrate a public IP address from one CVM to another CVM.
Overview
If CVM A fails and cannot provide services normally, the public IP on CVM A needs to be migrated to the healthy CVM B to ensure normal service. Public IP for migration includes ordinary public IP and EIP.
Directions
Step 1: Convert the ordinary public IP on CVM A to EIP
Note:
- If the public IP on CVM A is already an EIP, skip this step and proceed to Step 2: Unbind EIP from CVM A.
- EIP has flexible binding and unbinding capabilities that ordinary public IPs do not have. If the public IP on CVM A is an ordinary public IP, it needs to be converted to EIP, and the public IP can be migrated using the capabilities of EIP.
- Log in to the CVM console and click CVM in the left sidebar.
- On the CVM management page, select the region of CVM A and click
.Note:
When an ordinary public IP is converted to an EIP, the IP address remains unchanged, and your service is not interrupted. The EIP quota for each account in a single region is 20.

3. In the pop-up Convert to EIP window, click OK.
Step 2: Unbind EIP from CVM A
Unbind CVM A from the EIP. After it is unbound, CVM A cannot access the public network because it has no public IP.
- Log in to the CVM console and click CVM in the left sidebar.
- On the CVM management page, select the region of CVM A and click Operation > EIP > Unbind EIP in the operation column of the row.
- In the pop-up Unbind EIP dialog box, click OK to complete the EIP unbinding.
Step 3: Bind EIP to CVM B
Bind the EIP unbound from CVM A to CVM B to complete the migration of the public IP.
- Log in to the CVM console and click EIP in the left sidebar to enter the EIP interface.
- Select the region where CVM A is located, find the row where the EIP to which CVM A is unbound is located in the list, and click More > Bind in the operation column.

- In the Bind Resources window that pops up, select CVM Instance as the resource type, select the target CVM B to which the EIP needs to be migrated, and click OK.
- In the pop-up dialog box, click OK.
Step 4: Verify the migration results
After the migration is completed, you can check on the CVM list page or EIP list page that the public IP has been bound to the target CVM B.
Cloud Server List Page
- Log in to the CVM console and click CVM in the left sidebar.
- On the CVM management page, select the region of CVM B and find the row of CVM B in the list to view that the public IP has been successfully migrated.
EIP List Page
- Log in to the CVM console and click EIP in the left sidebar to enter the EIP interface.
- Select the region where CVM B is located and find the row where the migrated EIP is located in the list. You can then check that the EIP has been successfully bound to CVM B.
.