Binding a Virtual IP Address to an EIP or Edge Instance
Scenarios
You can bind a virtual IP address to an EIP or edge instance.
Before you bind a virtual IP address to an EIP, ensure that the virtual IP address has been bound to an edge instance so that the virtual IP address can be accessed through the EIP.
Procedure
- Log in to the management console.
- Hover on the left menu to display Service List. Under Content Delivery & Edge Computing, select Intelligent EdgeCloud.
The IEC Overview page is displayed.
- In the navigation pane on the left, choose Edge Networks > VPCs.
- On the Edge VPCs page, locate the VPC containing the subnet to which you want to bind a virtual IP address, and click the VPC name.
- On the Subnets tab, click the name of the subnet that you want to bind a virtual IP address to.
The subnet details page is displayed.
- Locate the virtual IP address you want to bind to an EIP or edge instance, and click Bind to EIP or Bind to Edge Instance in the Operation column.
- Select the target EIP or edge instance and its NIC.
- If an edge instance has multiple NICs, it is recommended that you bind the virtual IP address to the primary NIC.
- You can bind multiple virtual IP addresses to the NIC of an edge instance.
- Click OK.
Follow-up Operations
Manually configuring a virtual IP address for an edge instance that has been bound with the virtual IP address
After a virtual IP address is bound to an edge instance NIC, you need to manually configure the virtual IP address on the edge instance.
- Check the NIC to which you want to bind the virtual IP address and the NIC connection. Figure 1 Checking the NIC and its connection
In the preceding command output, eth0 in the DEVICE column indicates the NIC the virtual IP address is bound to, and System eth0 in the NAME column indicates the corresponding connection.
- Modify the corresponding connection and add the virtual IP address.
nmcli connection modify "CONNECTION" ipv4.addresses VIP
Figure 2 Configuring virtual IP address
- Restart the edge instance and run the ip address command to check whether the virtual IP address has been configured. Figure 3 Checking whether the virtual IP address has been configured
In the preceding command output, 192.168.1.137 is the virtual IP address.
Last Article: Managing Virtual IP Addresses
Next Article: Security Groups
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.