Log on to the VPC console.
In the left-side navigation pane, click VPC.
Click the VPC region where the VSwitch to be created is located.
Click the target VPC ID.
Then you are directed to the VPC Details page.
Click VSwitch and then click Create VSwitch.
In the Create VSwitch dialog, provide the following information:
Configuration Description VPC The 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.
Name Enter 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.
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 IPs The number of available IP addresses in the VSwitch. Description (optional) Add a description for the VSwitch.
- Click OK.
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.
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.
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.