Join us at the Alibaba Cloud ACtivate Online Conference on March 5-6 to challenge assumptions, exchange ideas, and explore what is possible through digital transformation.
As a private network carrier, a virtual private cloud (VPC) only supports the following major private CIDR blocks by default:
- 10.0.0.0/8 - 172.16.0.0/12 - 192.168.0.0/16
However, to facilitate users' network planning, public IP addresses can be used for VPC creation. This function is not supported on the VPC console, but rather, it can be implemented through APIs.
Step 1: Log on to the web-based API platform at https://api.aliyun.com/
As shown in the preceding UI image, click Virtual Private Cloud (VPC). Enter CreateVpc, as shown in the following UI image.
Step 2: Set the parameters accordingly.
Set the mandatory parameters, marked with asterisks (*).
In CidrBlock, enter the custom CIDR block that is required. This parameter defines the address range available for the creation of the VPC.
In UserCidr, enter the custom CIDR block as required. This allows route forwarding of the CIDR block information in the VPC to be created.
Step 3: Complete the VPC creation process.
Click Submit Request at the bottom on the page.
The VPC is created by using a public IP address and you can now deploy cloud resources in the VPC.
Step 4: Submit a ticket to enable the whitelist feature.
By default, the VPC forwards traffic from only the three major private CIDR blocks. To enable the VPC to forward traffic from non-standard public CIDR blocks, enable the whitelist feature at the backend.
You'll need to submit a ticket and submit the VPC ID, together with the public CIDR block, to apply a public CIDR block for the VPC.
If you have followed the above steps correctly, you should have successfully set up a VPC with a public IP address CIDR block.
Learn more about Alibaba Cloud's VPC at https://www.alibabacloud.com/product/vpc
Alibaba Clouder - July 28, 2020
Alibaba Clouder - March 8, 2019
Rohit Kumar - May 14, 2020
Alibaba Clouder - June 18, 2020
Alibaba Clouder - November 29, 2017
Alibaba Clouder - December 19, 2019
Connect your business globally with our stable network anytime anywhere.Learn More
A virtual private cloud service that provides an isolated cloud network to operate resources in a secure environment.Learn More
An end-to-end software-defined network solution for multinational enterprises.Learn More
OpenAPI Explorer allows you to call an API through its web interface or WebCLI, and view the entire process.Learn More
More Posts by zivyer