Virtual Private Cloud (VPC) allows you to provision logically isolated virtual private networks for cloud resources, such as cloud servers, containers, and databases.
You can create a VPC, specify a CIDR block, and create one or more subnets for the VPC. A VPC comes with a default route table that enables subnets in the VPC to communicate with each other.
in the upper left corner and choose Network > Virtual Private Cloud.The Virtual Private Cloud page is displayed.
The Create VPC page is displayed.
You can click
to add more subnets.
Parameter | Description | Example Value |
|---|---|---|
Region | Regions are geographic areas isolated from each other. For low network latency and quick resource access, select the region nearest to where your services will be accessed. | - |
Name | The VPC name. The name: | vpc-test |
IPv4 CIDR Block | The IPv4 CIDR block of the VPC. Consider the following when specifying a CIDR block: When you create a VPC, we recommend that you use the private IPv4 address ranges specified in RFC 1918 as the CIDR block: In addition to the preceding addresses, you can create a VPC with a publicly routable CIDR block that falls outside of the private IPv4 address ranges specified in RFC 1918. However, the following system and public reserved addresses must be excluded: For details about VPC planning, see VPC Network Planning Suggestions. | 10.0.0.0/8 |
Enterprise Project | The enterprise project to which the VPC belongs. An enterprise project facilitates project-level management and grouping of cloud resources and users. The name of the default project is default. | default |
Advanced Settings (Optional) > Tag | The VPC tag. Click Add tags to help you quickly identify, classify, and search for your VPCs. For details, see Managing VPC Tags. |
|
Advanced Settings (Optional) > Description | Supplementary information about the VPC. Click Enter the description about the VPC in the text box as required. The description can contain a maximum of 255 characters and cannot contain angle brackets (< or >). | N/A |
Parameter | Description | Example Value |
|---|---|---|
Subnet Name | The subnet name. The name: | subnet-01 |
IPv4 CIDR Block | The IPv4 CIDR block of the subnet. A subnet is a unique CIDR block with a range of IP addresses in a VPC. Comply with the following principles when planning subnets:
| 10.0.0.0/24 |
IPv6 CIDR Block | After the IPv6 function is enabled, the system automatically assigns an IPv6 CIDR block to the created subnet. Currently, the IPv6 CIDR block cannot be customized. IPv6 cannot be disabled after the subnet is created. | - |
Associated Route Table | The default route table with which the subnet will be associated. A route table contains a set of routes that are used to control the traffic routing for your subnets in a VPC. A default route table automatically comes with a VPC. Subnets in the VPC are automatically associated with the default route table. The default route table ensures that subnets in a VPC can communicate with each other. | - |
Advanced Settings (Optional) > Gateway | The gateway address of the subnet. Click Retain the default value unless there are special requirements. | 10.0.0.1 |
Advanced Settings (Optional) > DNS Server Address | The DNS server addresses. Click DNS server addresses allow ECSs in a VPC subnet to communicate with each other using private domain names. You can also directly access cloud services through private DNS servers. If you want to use other public DNS servers for resolution, you can change the default DNS server addresses. Changing the default DNS server addresses may cause communication failures in the subnet. | 100.125.x.x |
Advanced Settings (Optional) > Domain Name | Click You can enter multiple domain name suffixes separated by spaces. A domain name can contain one or more character strings separated by periods (.). Each character string can contain a maximum of 63 characters. (For example, domain name test.com contains two character strings: test and com.) The total length of the domain name cannot exceed 254 characters. To access a domain name, you only need to enter the domain name prefix. ECSs in the subnet automatically match the configured domain name suffix. If the domain names are changed, ECSs newly added to this subnet will use the new domain names. If an existing ECS in this subnet needs to use the new domain names, restart the ECS or run a command to restart the DHCP Client service or network service. | test.com |
Advanced Settings (Optional) > IPv4 DHCP Lease Time | The period during which a client can use an IP address automatically assigned by the DHCP server. Click The period during which a client can use an IP address automatically assigned by the DHCP server. After the lease time expires, a new IP address will be assigned to the client. After you change the DHCP lease time on the console, the change is applied automatically when the DHCP lease of an instance (such as ECS) is renewed. You can wait for the system to renew the lease or manually renew the lease. Renewing lease will not change the IP address used by the instance. If you want the new lease time to take effect immediately, manually renew the lease or restart the ECS. | - |
Advanced Settings (Optional) > NTP Server Address | The IP address of the NTP server. Click If you want to add NTP server addresses for a subnet, you can specify NTP Server Address. The IP addresses are added in addition to the default NTP server addresses.
| 192.168.2.1 |
Advanced Settings (Optional) > Tag | The subnet tag. Click Add tags to help you quickly identify, classify, and search for your subnets. For details, see Managing Subnet Tags. |
|
Advanced Settings (Optional) > Description | Supplementary information about the subnet. Click Enter the description about the subnet in the text box as required. The description can contain a maximum of 255 characters and cannot contain angle brackets (< or >). | N/A |
Return to the VPC list and view the new VPC.