You can bind a virtual IP address to an instance or EIP.
It is recommended that a maximum of eight virtual IP addresses be bound to an ECS. If an ECS has multiple virtual IP addresses, each virtual IP address is used by a specific service. If there are too many services, the ECS may become overloaded and compromise user experience.
in the upper left corner and choose Network > Virtual Private Cloud.The Virtual Private Cloud page is displayed.
The Subnets page is displayed.
The subnet details page is displayed.
The Bind to EIP dialog box is displayed.
In the virtual IP address list, you can view the bound EIP.
The Bind to Server dialog box is displayed.
In the virtual IP address list, you can view the bound server.
After you bind one or more virtual IP addresses to an ECS on the console, you must log in to the ECS to manually configure these virtual IP addresses.
The following OSs are used as examples here. For other OSs, see the help documentation on their official websites.
The following uses CentOS 8.2 64bit as an example. nmcli connection Information similar to the following is displayed: The command output in this example is described as follows: nmcli connection modify "connection-name-of-the-network-interface" +ipv4.addresses virtual-IP-address Configure the parameters as follows: Example commands: nmcli connection up "connection-name-of-the-network-interface" In this example, run the following command: nmcli connection up "System eth0" Information similar to the following is displayed: ip a Information similar to the following is displayed. In the command output, virtual IP address 192.168.0.22 is bound to network interface eth0. After the preceding configurations are complete, the configurations will not be lost after the ECS is restarted. To delete an added virtual IP address, perform the following steps: nmcli connection modify "connection-name-of-the-network-interface" -ipv4.addresses virtual-IP-address To delete multiple virtual IP addresses at a time, separate every two with a comma (,). Example commands are as follows:
The following uses Ubuntu 22.04 server 64bit as an example. If the ECS runs Ubuntu 22 or Ubuntu 20, perform the following operations: ifconfig Information similar to the following is displayed. In this example, the network interface with the virtual IP address bound is eth0. cd /etc/netplan vim 01-netcfg.yaml In this example, add a virtual IP address for eth0: addresses: - 172.16.0.26/32 The file content is as follows: netplan apply ip a Information similar to the following is displayed. In the command output, virtual IP address 172.16.0.26 is bound to network interface eth0. After the preceding configurations are complete, the configurations will not be lost after the ECS is restarted. To delete an added virtual IP address, perform the following steps:
The following operations use Windows Server as an example.
Figure 1 Configuring a private IP address

Add the virtual IP address, for example, 10.0.0.154.
Figure 2 Configuring a virtual IP address

ipconfig /all
In the command output, IPv4 Address is the virtual IP address 10.0.0.154, indicating that the virtual IP address of the ECS's network interface has been correctly configured.