Introduction
Virtual IP addresses can be associated with cloud resources (such as VMs and elastic IP addresses) on SCP to achieve high availability or flexible resource scheduling. You can use randomly selected or manually specified virtual IP addresses to meet diverse business needs.
Application Scenarios
• High availability: Configure virtual IP addresses for core business systems (such as database clusters) to ensure high availability. When the active node fails, its virtual IP address will automatically float to a standby node to avoid business interruption.
• Flexible resource scheduling: You can quickly migrate your business from one VM to another by changing the VM associated with the corresponding virtual IP address, without modifying the IP address configuration of the business.
• Flexible public access control: You can quickly change the public IP address of a VM to meet your business needs by changing the elastic IP address associated with the corresponding virtual IP address.
Virtual IP Address Creation
1. Introduction
When you create a virtual IP address (through random selection or manual input), you can specify the associated tenant, resource pool, VPC, and subnet. The created virtual IP address can be associated with a VM or an elastic IP address later.
2. Steps
Step 1.Log in to SCP and go to Networking > IP and Bandwidth > Virtual IPs.
Step 2.Click New. The Create Virtual IP Address pop-up window appears.
Step 3.Configure the fields as instructed in the table below:
| Field |
Description |
Operation Suggestion |
| Tenant |
Select the tenant associated with the virtual IP address to achieve tenant-level resource isolation. |
Select a specific tenant based on your business requirements. |
| Resource Pool |
Select the resource pool to which the virtual IP address belongs. If you want to associate the virtual IP address with a VM, ensure that they belong to the same resource pool. |
Select the resource pool where the business is deployed (Example: Hygon Cluster (c86)). |
| VPC |
Select the VPC to which the virtual IP address belongs. If you want to associate the virtual IP address with a VM, ensure that their network environments are consistent. |
Select a VPC that has been created. (For details about how to create a VPC, see section 1 of the VPC Management Manual.) |
| Subnet |
Select the subnet to which the virtual IP address belongs. It must be in the selected VPC. |
Select the subnet where the business is running. |
| Virtual IP - Random |
The system automatically selects an unused IP address from available IP addresses in the specified subnet. |
Set Virtual IP to Random if quick configuration is desired but no specific IP address is required. Note: Record the randomly selected IP address to avoid management confusion. |
| Virtual IP - Specified |
Enter an unused IP address in the specified subnet. |
Set Virtual IP to Specified if a fixed IP address is required for the business (such as software license binding). Ensure the specified IP address is not in use and is within the selected subnet. |
| Description (optional) |
Describe the use and business scenario of the virtual IP address. |
Example: This virtual IP address is used for a database cluster and can float between the active and standby nodes. |
Step 4.After the configuration is complete, click OK to complete the creation of the virtual IP address.
Association with VM
1. Introduction
You can associate a virtual IP address with a VM to achieve high availability and flexible resource scheduling.
2. Steps
Step 1.Step 1: Log in to SCP and go to Networking > IP and Bandwidth > Virtual IPs.
Step 2.Step 2: Find the target virtual IP address and click Associate VM in the Operation column. The Associate VM pop-up window appears.
Step 3.Step 3: Configure the fields as instructed in the table below:
| Field |
Description |
Operation Suggestion |
| Available |
Select the VM to be associated with the virtual IP address from the list of available VMs. It must be in the same resource pool and VPC as the virtual IP address. |
Select a VM (such as a VM on the primary database node) based on your business requirements. |
Step 4.Step 4: Select the target VM in the Available section to move it to the Selected section.
Step 5.Step 5: Click OK to complete the association between the virtual IP address and the VM.
Virtual IP Address Deletion
1. Introduction
You can delete an unused virtual IP address to release the virtual IP quota. This operation applies to scenarios such as business decommissioning and resource reorganization.
2. Prerequisites
• The virtual IP address is not associated with any VM or elastic IP address. All associated resources must be disassociated first.
3. Steps
Step 1.Log in to SCP and go to Networking > IP and Bandwidth > Virtual IPs.
Step 2.Find the target virtual IP address and click Delete (or choose More > Delete) in the Operation column.
Step 3.In the pop-up window that appears, click OK to confirm the deletion of the virtual IP address.