Managing VPC Instances

Last updated: 2021-03-03 10:54:33

    Virtual Private Clouds (VPCs) are the basis for using Tencent Cloud services. When purchasing an instance such as a CVM, you need to choose the VPC to which the instance belongs. This document describes the usage lifecycle of VPCs.

    Background

    1. Creating a VPC: you need to carefully plan your network before creating a VPC. The CIDR blocks of VPCs and subnets cannot be modified after creation.
    2. Viewing a VPC: you can view the basic information of a VPC, its CCN association, and the resources it contains.
    3. (Optional) Choose the operations that apply to your use cases:
    4. Deleting a VPC: after a VPC is deleted, its subnets and route tables are also deleted.

    Creating a VPC

    A VPC has at least one subnet, and Tencent Cloud service resources can only be added in a subnet.

    1. Log in to the VPC console.
    2. Select a region at the top of the VPC page, and click +New.
    3. In the Create VPC dialog box, enter the VPC information and original subnet information, and then click OK.

      Note:

      The CIDR blocks of the VPC and subnet cannot be modified after creation.

      • The VPC CIDR block can be any of the following IP ranges. For VPCs to communicate with each other over the private network, their CIDR blocks should not overlap.
      • 10.0.0.0 - 10.255.255.255 (mask range between 16 and 28)
      • 172.16.0.0 - 172.31.255.255 (mask range between 16 and 28)
      • 192.168.0.0 - 192.168.255.255 (mask range between 16 and 28)
      • The subnet CIDR block must fall within or the same as the VPC CIDR block.
        For example, if the VPC IP range is 192.168.0.0/16, then its subnet IP range can be 192.168.0.0/16, 192.168.0.0/17, etc.

    Viewing a VPC

    1. Log in to the VPC console.
    2. Select the region of the VPC at the top of the VPC page.
    3. In the VPC list, click the ID/Name of the VPC to view its details.
      On the details page, you can view the basic information of the VPC, its CCN association, and the resources it contains.

    Creating Secondary CIDR Blocks

    Note:

    • The secondary CIDR block feature is currently in beta. To try it out, please submit a ticket.
    • The secondary CIDR block can overlap with the destination IP range of a custom route. However, you need to exercise caution with this, because the secondary CIDR block route is a local route and the priority of local routes is higher than that of custom subnet routes.
    • Classic network CVMs do not support interconnection with cloud resources in the secondary CIDR block.
    • Currently, only Cloud Connect Network (CCN) supports passing the secondary CIDR blocks. That is, CVMs in the secondary CIDR block cannot communicate with other VPCs or IDCs via peering connection or Direct Connect.
    1. Log in to the VPC console.
    2. Select the region of the VPC at the top of the VPC page.
    3. In the VPC list, locate the VPC and select More > Edit IPv4 CIDR Block under its Operation column.
    4. In the pop-up dialog box, click Add to enter a secondary CIDR block.
    5. Click OK.

    Deleting Secondary CIDR Blocks

    Note:

    The secondary CIDR block feature is currently in beta. To try it out, please submit a ticket.

    1. Log in to the VPC console.
    2. Select the region of the VPC at the top of the VPC page.
    3. In the VPC list, locate the VPC to delete and select More > Edit IPv4 CIDR Block under its Operation column.
    4. In the pop-up dialog box, click Delete next to the secondary CIDR block.
    5. Click OK.

    Deleting a VPC

    To delete a VPC, there must be no occupation of the VPC’s IP addresses and no cloud resources in the VPC (such as CVMs, TencentDB instances, or gateways).

    1. Log in to the VPC console.
    2. Select the region of the VPC at the top of the VPC page.
    3. In the VPC list, locate the VPC to delete, click Delete under its Operation column, and confirm the deletion.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help