A virtual private cloud (VPC) is a private network on an ENS edge node where you can specify CIDR blocks and configure route table entries.
Create and manage a VPC and a vSwitch
Before you create a VPC and a vSwitch, make a networking plan to avoid CIDR block conflicts.
If you need network communication between different ENS edge nodes, plan your cross-VPC network carefully. For more information, see Edge Cloud WAN Interconnection Solution.
Log on to the ENS console.
-
In the left-side navigation pane, click .
-
Click Create Network.
On the Create Network page, configure parameters in the Network and vSwitch sections. The following tables describe the parameters.
Network:
Parameter
Description
Node
The edge node on which you want to create a VPC.
Name
The name of the VPC.
IPv4 CIDR Block
Recommended CIDR Block: Select
10.0.0.0/8,172.16.0.0/12, or192.168.0.0/16.Custom CIDR Block: You can use
192.168.0.0/16,172.16.0.0/12, and10.0.0.0/8as well as their subnets as the CIDR blocks of VPCs. A subnet mask must be 16 to 24 bits in length. Example:192.168.0.0/16.
NoteNote: After you create a VPC, the CIDR block cannot be modified.
Description
The description of the VPC.
The description can be empty. If you enter a description, it must be 2 to 256 characters in length and must start with a letter. It cannot start with
http://orhttps://.Tags
You can add tags to a VPC for subsequent resource management.
vSwitch:
Parameter
Description
Name
The name of the vSwitch.
IPv4 CIDR Block
The CIDR block of the VPC.
NoteAfter you create a VPC, the CIDR block cannot be modified.
Number of Available IP Addresses
You do not need to specify this parameter. The value is automatically calculated based on the CIDR block size.
Description
The description of the vSwitch.
The description can be empty. If you enter a description, it must be 2 to 256 characters in length and must start with a letter. It cannot start with
http://orhttps://.Tags
You can add tags to a vSwitch for subsequent resource management.
-
(Optional) To create multiple vSwitches for the network, click Add and configure the new vSwitch as described above.
NoteYou can create up to three vSwitches for a VPC.
After you create a VPC, you can modify only the name and description in the Basic Information section.
View and manage a VPC
Log on to the ENS console.
-
In the left-side navigation pane, click .
-
On the Networks page, you can filter VPCs by VPC ID, VPC Name, or ENS edge node.
Click
to associate or disassociate an ACL. -
On the Networks page, click the Network ID/Name of the VPC that you want to view or click Manage in the Actions column. This action opens the network details page.
-
The VPC details page displays the following sections:
-
Basic information: Network ID, Name, Node, IPv4 CIDR Block, Status, Created At, Description, and Network ACL.
-
Associated resources: The number of resources, such as instances, vSwitches, Route Tables, ENIs, CLB, NAT Gateway, and HAVIP. Click a number to go to the list of the corresponding resources.
-
After you create a VPC, you can modify only the name and description in the Basic Information section.
View and manage a vSwitch
Log on to the ENS console.
-
In the left-side navigation pane, click .
-
On the vSwitches page, you can filter vSwitches by vSwitch ID, vSwitch Name, or Network ID.
-
On the vSwitches page, click the vSwitch ID/Name of the vSwitch that you want to view or click Manage in the Actions column. This action opens the vSwitch details page.
-
The vSwitch details page displays the following sections:
-
Basic information: vSwitch ID, name, Node, Status, Network ID, Network Name, Created At, Number of Available IP Addresses, and Description.
-
Associated resources: The number of resources, such as instances, ENI, CLB, NAT Gateway, and HAVIP. Click a number to go to the list of the corresponding resources.
-
After you create a vSwitch, you can modify only the name and description in the Basic Information section.
Delete a VPC
On the Networks page in the ENS console, find the VPC that you want to delete and click Delete in the Actions column. Verify that the VPC and its associated resources are no longer needed before you confirm.
Delete a vSwitch
On the vSwitches page in the ENS console, find the vSwitch that you want to delete and click Delete in the Actions column. Confirm the action when prompted.