Updated on 2022-01-25 GMT+08:00

(Optional) Creating a VPC

Scenarios

A VPC provides an isolated virtual network for ECSs. You can configure and manage the network as required.

You can create a VPC by following the procedure provided in this section. Then, create subnets, security groups, and assign EIPs by following the procedure provided in subsequent sections based on your actual network requirements.

Procedure

  1. Log in to the management console.
  2. On the console homepage, under Network, click Virtual Private Cloud.
  3. On the Virtual Private Cloud page, click Create VPC.
  4. On the Create VPC page, set parameters as prompted.

    A default subnet will be created together with a VPC and you can also click Add Subnet to create more subnets for the VPC.

    Table 1 Parameter descriptions

    Category

    Parameter

    Description

    Example Value

    Basic Information

    Name

    The VPC name.

    The name can contain a maximum of 64 characters, which may consist of letters, digits, underscores (_), hyphens (-), and periods (.). The name cannot contain spaces.

    VPC-001

    Basic Information

    CIDR Block

    The CIDR block of the VPC. The CIDR block of a subnet can be the same as the CIDR block for the VPC (for a single subnet in the VPC) or a subset of the CIDR block for the VPC (for multiple subnets in the VPC).

    The following CIDR blocks are supported:

    10.0.0.0 – 10.255.255.255

    172.16.0.0 – 172.31.255.255

    192.168.0.0 – 192.168.255.255

    192.168.0.0/16

    Subnet Settings

    Name

    The subnet name.

    The name can contain a maximum of 64 characters, which may consist of letters, digits, underscores (_), hyphens (-), and periods (.). The name cannot contain spaces.

    Subnet-001

    Subnet Settings

    CIDR Block

    The CIDR block for the subnet. This value must be within the VPC CIDR block.

    192.168.0.0/24

    Subnet Settings

    Advanced Settings

    You can retain the default settings or customize the settings. You can click Advanced Settings to configure advanced subnet parameters.

    Default

    Subnet Settings

    Gateway

    The gateway address of the subnet.

    192.168.0.1

  5. Click Create Now.