Assigning a Virtual IP Address
Scenarios
If an ECS requires a virtual IP address or if a virtual IP address needs to be reserved, you can assign a virtual IP address from the subnet.
You can perform operations on virtual IP addresses through the subnet module. However, the entry to visit the subnet module varies by region.
- If the subnet module is not decoupled from the VPC module in your selected region, you have to visit the subnet module by clicking the Subnets tab on the VPC details page.
- If the subnet module is decoupled from the VPC module in your selected region, you can visit the subnet module directly after you click Subnets on the navigation pane of the VPC console.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - On the console homepage, under Network, click Virtual Private Cloud.
- In the navigation pane on the left, click Virtual Private Cloud.
- On the Virtual Private Cloud page, locate the VPC containing the subnet where a virtual IP address is to be assigned, and click the VPC name.
- On the Subnets tab, click the name of the subnet where a virtual IP address is to be assigned.
- Click the Virtual IP Addresses tab and click Assign Virtual IP Address.
- In the navigation pane on the left, click Subnets.
- In the subnet list, click the name of the subnet where a virtual IP address is to be assigned.
- Click the IP Addresses tab and click Assign Virtual IP Address.
- Select an IP address type. This parameter is available only in regions supporting IPv6.
- IPv4
- IPv6
- Select a virtual IP address assignment mode.
- Automatic: The system assigns an IP address automatically.
- Manual: You can specify an IP address.
- Select Manual and enter a virtual IP address.
- Click OK.
You can then query the assigned virtual IP address in the IP address list.
Last Article: Virtual IP Address Overview
Next Article: Binding a Virtual IP Address to an EIP or ECS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.