edit-icon download-icon

Create a VSwitch

Last Updated: Nov 07, 2017

Prerequisite

Procedure

  1. Log on to the VPC console.

  2. In the left-side navigation pane, click VPC.

  3. Click the VPC region where the VSwitch to be created is located.

  4. Click the target VPC ID.

    Then you are directed to the VPC Details page.

  5. Click VSwitch and then click Create VSwitch.

  6. In the Create VSwitch dialog, provide the following information:

    ConfigurationDescription
    VPCThe ID of the VPC where the VSwitch is located.
    VPC CIDR block

    The CIDR block of the VPC.

    You can choose to click Display Binary to view the CIDR block in binary format.

    NameEnter the name of the VSwitch.
    Zone

    Select a zone of the VSwitch.

    Zones are physical areas with independent power grids and networks in one region. Zones in the same region are intranet connected. We recommend creating different VSwitches in different zones to achieve disaster recovery.

    CIDR block

    Specify the VSwitch IP address in the CIDR block form.

    Note the following when specifying a VSwtich CIDR block:

    • The allowed block size for a VSwitch is between a /16 netmask and /29 netmask, which can provide 8 to 65,536 IP addresses.
    • The CIDR block of the VSwitch can be the same as that of the VPC that it belongs to, or the subset of the VPC CIDR block.

      Note: If the CIDR block of the VSwitch is the same as that of the VPC, you can only create one VSwitch.

    • The first and the last three IP addresses are reserved by the system. For example, for the CIDR block 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.
    • You need to consider the number of the cloud product instances running in the VSwitch.
    Number of Available Private IPsThe number of available IP addresses in the VSwitch.
    Description (optional)Add a description for the VSwitch.
  7. Click OK.

Create cloud product instances in a VPC

On the VSwitch List page, click Create an Instance to create an ECS, SLB, or RDS instance. For more details, refer to Create cloud service instance in a VPC.

Modify a VSwtich

On the VSwitch List page, find the target VSwitch and then click Edit. Or hover your mouse pointer over the VSwitch name to change the name of the VSwitch.

Delete a VSwitch

On the VSwitch List page, find the target VSwitch and then click Delete, click Confirm to delete the VSwitch.

Note: Before deleting a VSwitch, confirm that you have released or transferred all the cloud product instances under it.

Thank you! We've received your feedback.