- Log in to VPC Console and choose IPs and ENIs > HAVIP in the left sidebar.
- Select the target region on the HAVIP management page and click Apply.
- Enter the name and select the VPC and subnet of the HAVIP. Then, click OK.
The IP address of the HAVIP can be automatically assigned or manually specified (the validity check for manual specification is the same as that for common private IP addresses.)
Binding and Unbinding HAVIPs
HAVIP is designed to use in combination with third-party HA software. Binding and unbinding HAVIP to CVMs are not done in the Tencent Cloud console. Instead, you need to operate in third-party HA software to specify HAVIP as a floating virtual IP address (VIP), and use the third-party HA software to specify the ENI to be bound to the HAVIP through ARP. The following shows an example. For detailed operations, see the documentation for the third-party HA software:
- In a traditional physical device environment, all private IP addresses are bound to ENIs through ARP by default and can be specified as floating IP addresses in the HA software.
- In a public cloud environment, ARP is prohibited for common private IP addresses. If an common private IP address is specified as a floating IP address in the HA software, floating will fail. Therefore, HAVIP is required in this case.
- HAVIP is only an operation object and serves as a private IP address that can be bound through declaration. The operation is initiated by third-party software, and binding and unbinding are not done in the HAVIP console.
- In the HA software in the CVM, HAVIP is specified as a floating VIP. This operation is the same as the operation of the third-party HA software on a non-cloud platform. For operations of different HA software, see the operation guide of the corresponding software.
Common HA software program include: Linux HeartBeat, Keepalived, Pacemaker, and Windows MSCS.
When specifying a VIP in the HA software (either in the configuration file or on the operation page), enter the HAVIP that you created. For example:
- Log in to VPC Console and choose IPs and ENIs > HAVIP in the left sidebar. In the list, find the HAVIP to be released.
- Click Release in the operation column and then select OK in the pop-up box.
Modify the configuration file in the CVM after the release.