Create and manage VPCs and vSwitches

更新时间:
复制 MD 格式

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

Note

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.

  1. Log on to the ENS console.

  2. In the left-side navigation pane, click 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) To create multiple vSwitches for the network, click Add and configure the new vSwitch as described above.

    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, click Network Management > Networks.

  3. On the Networks page, you can filter VPCs by VPC ID, VPC Name, or ENS edge node.

  4. Click image to associate or disassociate an ACL.

  5. 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.

  6. The VPC details page displays the following sections:

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

    2. 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.

  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, click Network Management > vSwitches.

  3. On the vSwitches page, you can filter vSwitches by vSwitch ID, vSwitch Name, or Network ID.

  4. 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.

  5. The vSwitch details page displays the following sections:

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

    2. 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.

  6. 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.