All Products
Search
Document Center

ENS:Create and manage VPCs and vSwitches

Last Updated:Apr 01, 2026

A virtual private cloud (VPC) is a private network on an ENS edge node. You can specify a CIDR block and configure route table entries for each VPC. Use VPCs to isolate workloads at the edge and control internal network communication between instances.

Prerequisites

Before you begin, ensure that you have:

  • Planned your CIDR block ranges to avoid conflicts across VPCs

  • (If instances across edge nodes need to communicate over an internal network) Designed a cross-VPC network topology before creating any VPCs

Create a VPC and vSwitch

The Create Network form creates a VPC and one or more vSwitches in a single step. Both resources are provisioned together when you click OK.

Note

The CIDR block cannot be changed after a VPC is created. If you need a different CIDR block later, you must delete the resource and create a new one.

  1. Log on to the ENS console.

  2. In the left-side navigation pane, choose Network Management > Networks.

  3. Click Create Network.

  4. In the Network section, configure the VPC parameters.

    ParameterDescription
    NodeThe edge node on which to create the VPC.
    NameThe name of the VPC.
    IPv4 CIDR blockThe address range for the VPC. Valid ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or any subnet of these ranges. The subnet mask must be 16–24 bits. Example: 192.168.0.0/16.
    Description(Optional) 2–256 characters, starting with a letter. Cannot start with http:// or https://.
    Tags(Optional) Tags for resource management.
  5. In the vSwitch section, configure the vSwitch parameters.

    ParameterDescription
    NameThe name of the vSwitch.
    IPv4 CIDR blockThe address range for the vSwitch. Must be within the VPC's CIDR block.
    Number of available IP addressesRead-only. Calculated automatically from the CIDR block size.
    Description(Optional) 2–256 characters, starting with a letter. Cannot start with http:// or https://.
    Tags(Optional) Tags for resource management.
  6. (Optional) To add more vSwitches to the VPC, click Add at the bottom of the vSwitch section and configure each vSwitch.

    Note

    A VPC supports up to three vSwitches.

  7. Click OK to create the VPC and all configured vSwitches.

After creation, only the name and description can be modified in the Basic Information section.

View and manage a VPC

  1. Log on to the ENS console.

  2. In the left-side navigation pane, choose Network Management > Networks.

  3. On the Networks page, filter VPCs by Network ID, Network Name, or edge node.

  4. To associate or disassociate a network ACL, click the ACL icon in the row for the target VPC.

  5. To open the VPC details page, click its ID in the Network ID/Name column, or click Manage in the Actions column. The VPC details page has two sections:

    • Basic Information: Network ID, Name, Node, IPv4 CIDR block, Status, Created At, Description, and Network ACL. You can edit the Name and Description here.

    • Resource Information: The count of associated resources — Instance, vSwitch, Route Table, ENI (Elastic Network Interface), CLB (Classic Load Balancer), NAT Gateway, and HAVIP (High Availability Virtual IP). Click a count to go to the corresponding resource page.

View and manage a vSwitch

  1. Log on to the ENS console.

  2. In the left-side navigation pane, choose Network Management > vSwitches.

  3. On the vSwitches page, filter vSwitches by vSwitch ID, vSwitch Name, or edge node.

  4. To open the vSwitch details page, click its ID in the vSwitch ID/Name column, or click Manage in the Actions column. The vSwitch details page has two sections:

    • Basic Information: vSwitch ID, Name, Node, Status, Network ID, Network Name, Created At, Number of Available IP Addresses, and Description. You can edit the Name and Description here.

    • Resource Information: The count of associated resources — Instance, ENI, CLB, NAT Gateway, and HAVIP. Click a count to go to the corresponding resource page.

Delete a VPC

To delete the VPC, go to the Networks page and click Delete in the Actions column for the target VPC.

Delete a vSwitch

Go to the vSwitches page and click Delete for the target vSwitch.