All Products
Search
Document Center

ENS:Create and manage VPCs and vSwitches

Last Updated:Feb 28, 2025

A virtual private cloud (VPC) is a private network on the edge node. You can specify a CIDR block and configure route table entries for your VPC.

Create and manage a VPC and a vSwitch

Note

Before you create a VPC and a vSwitch, make a networking plan to avoid CIDR block conflicts.

If you want to communicate across edge nodes over an internal network, you need to make a cross-VPC network plan.

  1. Log on to the ENS console.

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

  3. Click Create Network.

  4. On the Create Network page, configure parameters in the Network and VSwitch sections. The following tables describe the parameters.

    1. 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, or 192.168.0.0/16.

      • Custom CIDR Block: You can use 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8 as 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.

      Note

      Note: 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:// or https://.

      Tags

      You can add tags to a VPC for subsequent resource management.

    2. vSwitch:

      Parameter

      Description

      Name

      The name of the vSwitch.

      IPv4 CIDR Block

      The CIDR block of the VPC.

      Note

      After 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:// or https://.

      Tags

      You can add tags to a vSwitch for subsequent resource management.

  5. Optional. If you want to create multiple vSwitches for a VPC, click Add at the bottom of the vSwitch section and configure the parameters.

    Note

    You can create up to three vSwitches for a VPC.

  6. After you create a VPC, you can modify only the name and description 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 Network page, you can filter VPCs by Network ID, Network Name, and edge nodeENS.

  4. Click image to associate or disassociate an ACL.

  5. Click the ID of the VPC that you want to manage in the Network ID/Name column on the Networks page to go to the VPC details page. You can also click Manage in the Actions column to go to the VPC details page.

  6. The VPC details page contains the Basic Information and Resource Information sections. The Resource Information section displays the type and quantity of resources associated with the VPC.

    1. Basic Information: Network ID, Name, Node, IPv4 CIDR Block, Status, Created At, Description, and Network ACL.

    2. Resource Information: the numbers of resources such as Instance, vSwitch, Route Table, ENI, CLB, NAT Gateway, and HAVIP. You can click a number to go to the page of the corresponding resource.

  7. After you create a VPC, you can modify only the name and description in the Basic Information section.

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, you can filter vSwitches by vSwitch ID, vSwitch Name, and ENS.

  4. On the vSwitches page, find the vSwitch that you want to manage and click the vSwitch ID in the vSwitch ID/Name column to go to the details page of the vSwitch. You can also click Manage in the Actions column to go to the vSwitch details page.

  5. The vSwitch details page contains the Basic Information and Resource Information sections. The Resource Information section displays the type and quantity of resources associated with the vSwitch.

    1. Basic Information: vSwitch ID, Name, Node, Status, Network ID, Network Name, Created At, Number of Available IP Addresses, and Description.

    2. Resource Information: numbers of resources such as Instance, ENI, CLB, NAT Gateway, and HAVIP. You can click a number to go to the page of the corresponding resource.

  6. After you create a vSwitch, you can modify only the name and description in the Basic Information section.

Delete a VPC

You can click Delete in the Actions column on the Networks page to delete a VPC.

Delete a vSwitch

You can click Delete on the vSwitches page to delete a vSwitch.