This topic describes how to create a VPC. You can use a VPC to select IP address ranges or configure route tables and gateways. You can also use a VPC to manage your Alibaba Cloud resources, such as ECS, RDS, and SLB Alibaba Cloud resources, such as ECS, RDS, and SLB.

Background information

At least one VSwitch is created. For more information, see Overview of VPCs and VSwitches.

Procedure

  1. Log on to the VPC console.
  2. Select the region in which you want to create a VPC.
    Note The VPC must be in the same region as the cloud resources that you want to deploy.
  3. On the VPCs page, click Create VPC.
  4. On the Create VPC page, set the parameters, and then click OK. The following table describes the parameters.
    Note IPv6 is only supported in the China (Hohhot) region. After IPv6 is enabled, an IPv6 Gateway is automatically created.
    Configuration Description
    VPC
    Region The region in which the VPC is created.
    Name Enter a name for the VPC.

    The name must be 2 to 128 characters in length and can contain letters, numbers, underscores (_), and hyphens (-). It must start with a letter.

    IPv4 CIDR Block Select an IPv4 CIDR block. Options:
    • Default CIDR Block: Select 192.168.0.0/16, 172.16.0.0/12, or 10.0.0.0/8.
    • Custom CIDR Block: Select 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, or their subnets. The CIDR block mask must be 8 to 24 bits in length. In this example, select 192.168.0.0/16. If you want to use a public CIDR block as the CIDR block of the VPC, open a ticket.
    Notice After the VPC is created, you cannot change its IPv4 CIDR block.
    IPv6 CIDR Block Select whether to allocate an IPv6 CIDR block to the VPC. By default, no IPv6 CIDR block is allocated.

    If you select to allocate an IPv6 CIDR block, an IPv6 CIDR block is automatically allocated to your VPC free of charge, for example, 2xx1:db8::/56. By default, IPv6 addresses only support private network communication. If you want to access the Internet through this IPv6 address or be accessed by IPv6 clients on the Internet, you need to activate IPv6 Internet bandwidth.

    Notice After the VPC is created, you cannot change its IPv6 CIDR block.
    Description Enter a description for the VSwitch.

    The description must be 2 to 256 characters in length and cannot start with http:// or https://.

    Resource Group Select the resource group to which the VPC belongs.
    VSwitch
    Name Enter a name for the VSwitch.

    The name must be 2 to 128 characters in length and can contain letters, numbers, underscores (_), and hyphens (-). It must start with a letter.

    Zone Select a zone for the VSwitch. In a VPC, VSwitches in different zones can communicate with each other through the intranet.
    Zone Resource The cloud resource instances that can be created in the selected zone.

    The cloud resources that can be created in different zones vary with time periods. The inventory status of specific instance types can be queried on the purchase page. Only the inventory status of ECS, RDS, and SLB can be queried.

    IPv4 CIDR Block Enter the IPv4 CIDR block of the VSwitch. When you specify the CIDR block of the VSwitch, note the following limits:
    • The CIDR block of the VSwitch can be the same as that of the VPC to which it belongs, or a subnet of the VPC CIDR block.

      For example, if the CIDR block of the VPC is 192.168.0.0/16, the CIDR block of the VSwitch can be 192.168.0.0/16, or any CIDR block between 192.168.0.0/17 and 192.168.0.0/29.

      Note If the CIDR block of the VSwitch is the same as that of the VPC to which it belongs, you can only create one VSwitch in the VPC.
    • The size of the mask for the VSwitch can be /16 to /29, which can provide 8 to 65,536 IP addresses.
    • The first and last three IP addresses are reserved by the system.

      For example, if the CIDR block of the VSwitch is 192.168.1.0/24, the IP addresses 192.168.1.0, 192.168.1.253, 192.168.1.254, and 192.168.1.255 are reserved.

    • If the VSwitch needs to communicate with VSwitches in other VPCs or with on-premises data centers, make sure that the CIDR blocks involved do not conflict with each other.
    Notice After the VSwitch is created, you cannot modify its CIDR block.
    Number of Available Private IPs The number of available private IP addresses.
    IPv6 CIDR Block Enter the IPv6 CIDR block of the VSwitch.

    The mask for the IPv6 CIDR block of the VSwitch is /64. You can enter a value from 0 to 255 to define the last eight bits of the IPv6 CIDR block.

    For example, if the IPv6 CIDR block of the selected VPC is 2xx8:4004:c0:b900::/56 and you enter 255 (ff in hexadecimal notation), the IPv6 CIDR block of the VSwitch is 2xx8:4004:c0:b9ff::/64.

    Description Enter a description for the VSwitch.

    The description must be 2 to 256 characters in length and cannot start with http:// or https://.