Updated on 2025-08-27 GMT+08:00

Modifying a VPC

Scenarios

You can modify the following information about a VPC:

Constraints

If the secondary IPv4 CIDR block function is available in a region, the CIDR block of a VPC in this region cannot be modified through the console. You can call an API to modify VPC CIDR block. For details, see Updating a VPC.

Modifying the Name and Description of a VPC

  1. Go to the VPC list page.
  2. Modify the name and description of a VPC using either of the following methods:
    • Method 1:
      1. In the VPC list, click on the right of the VPC name.
      2. Enter a VPC name and click OK.
    • Method 2:
      1. In the VPC list, locate the target VPC and click its name.

        The Summary page is displayed.

      2. Click on the right of the VPC name or description, enter the information, and click .

Modifying the CIDR Block of a VPC

  1. Go to the VPC list page.
  1. In the VPC list, locate target VPC and click Edit CIDR Block in the Operation column.

    The Edit CIDR Block dialog box is displayed.

  2. Modify the VPC CIDR block as prompted.
    A VPC CIDR block must be from 10.0.0.0/8–24, 172.16.0.0/12–24, or 192.168.0.0/16–24.
    • If a VPC has no subnets, you can change both its network address and subnet mask.
      Figure 1 Modifying network address and subnet mask
    • If a VPC has subnets, you only can change its subnet mask.
      Figure 2 Modifying subnet mask
  3. Click OK.