A VSwitch is a basic network device of a VPC and used to connect different cloud product instances. After creating a VPC, you can further segment your virtual private network to one or more subnets by creating VSwitches. The VSwitches within a VPC are interconnected. Therefore, you can deploy different applications in the different VSwitches of different zones to improve the service availability.


Ensure that you have already created a VPC.


  1. Log on to the VPC console.
  2. In the left-side navigation pane, click VSwitches.
  3. Select the region of the VPC in which you want to create a VSwitch.
  4. Click Create VSwitch.
    The Create VSwitch page appears.
  5. On the Create VSwitch page, set the following parameters, and then click OK.
    1. From the VPC drop-down menu, select a VPC to which the VSwitch belongs.
    2. In the Name text box, enter the name for the VPC.
    3. From the Zone drop-down menu, select the zone to which the VSwitch belongs.
    4. In the IPv4 CIDR Block text box, enter the IPv4 CIDR block of the VSwitch.
    • The IPv4 CIDR block of the VSwitch can be the same as that of the VPC to which the VSwitch belongs or be a subset of the VPC CIDR block.

      For example, if the CIDR block of the VPC is, the CIDR block of the VSwitch in the VPC can be, or any CIDR block between and

      Note: If the CIDR block of the VSwitch is the same as that of the VPC, you can only create one VSwitch.
    • The subnet mask of the VSwitch CIDR block can be 16 to 29 bits. It means that the VSwitch can provide 8 to 65,536 IP addresses.
    • The first IP address and the last three IP addresses in the VSwitch CIDR block are reserved.

      For example, if the VSwitch CIDR block is, the IP addresses,,, and are reserved.

    • If the VSwitch needs to communicate with VSwitches of other VPCs or on-premises data centers, you need to make sure that the CIDR blocks involved do not conflict with each other.
    Note: After the VSwitch is created, you cannot change its IPv4 CIDR block.

What to do next