Virtual Private Cloud (VPC) is a private network established in Alibaba Cloud. VPCs are logically isolated from other virtual networks in Alibaba Cloud. A VPC is needed before you migrate your AWS service to Alibaba Cloud.

Procedure

  1. Log on to the VPC console.
  2. Select the region of the VPC.

    The VPC and the cloud resources to deploy must be in the same region.

  3. Click Create VPC, configure the VPC and the VSwitch according to the following information, and click OK.
    Table 1. VPC configurations
    Configuration Description
    Name Enter the name of the VPC.

    The name can contain 2 to 128 characters. It must begin with English or Chinese characters and can contain numbers, hyphens (-) and underscores (_).

    CIDR Select the CIDR block of the VPC. Limitations on VPC CIDR blocks are as follows:
    • You can use 192.168.0.0/16, 172.16.0.0/12, or 10.0.0.0/8, the three standard CIDR blocks and their subsets. If you want to use a subnet of a standard CIDR block as the IP address range, you must use API to create a VPC.

    • If you want to connect a VPC to another VPC or to a local network to build a hybrid cloud, we recommend that you use a subset of the standard CIDR blocks, and make sure that the network mask is no longer than /16.

    • If you only have one VPC and it does not need to communicate with your local network, you can use any of the standard CIDR blocks or their subnets.

    Note After the VPC is created, you cannot change its CIDR block.
    Table 2. VSwitch configurations
    Configuration Description
    Name Enter the name of the VSwitch.

    The name can contain 2 to 128 characters. It must begin with English letters or Chinese characters and can contain numbers, hyphens, and underscores.

    Zone Select the zone of the VSwitch. In a VPC, VSwitches in different zones can communicate with each other through the intranet.
    CIDR Enter the CIDR block of the VSwitch. Note the following when specifying the VSwitch CIDR block:
    • The CIDR block of the VSwitch can be the same as that of the VPC to which it belongs, or a subset 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 in the VPC can be 192.168.0.0/16, 192.168.0.0/17, …, till 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 subnet mask for the VSwitch can be from /16 to /29, and the VSwitch CIDR block can provide 8 to 65536 IP addresses.

    • The first and last three IP addresses are reserved by the system.

      For example, for the IP address range 192.168.1.0/24, IP addresses 192.168.1.0, 192.168.1.253, 192.168.1.254, and 192.168.1.255 are reserved by the system.

    • Consider the number of cloud instances to be created in the VSwitch. Up to 15000 instances can be created in a VPC.

    Note After the VSwitch is created, you cannot change its CIDR block.