Modifying a Subnet

Scenarios

Change the subnet name and DNS server address.

The entry to visit the subnet module varies by region.

  • If the subnet module is not decoupled from the VPC module in your selected region, you have to visit the subnet module by clicking the Subnets tab on the VPC details page. This is used as the example of the operation procedure in this section.
  • If the subnet module is decoupled from the VPC module in your selected region, you can visit the subnet module directly after you click Subnets on the navigation pane of the VPC console.

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. On the console homepage, under Network, click Virtual Private Cloud.
  3. In the navigation pane on the left, click Virtual Private Cloud.
  4. On the Virtual Private Cloud page, locate the VPC for which a subnet is to be modified and click the VPC name.
  5. In the subnet list, locate the target subnet and click Modify. Modify the parameters as prompted.
    Table 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Name

    The subnet name.

    The name can contain a maximum of 64 characters, which may consist of letters, digits, underscores (_), hyphens (-), and periods (.). The name cannot contain spaces.

    Subnet

    DNS Server Address

    DNS server addresses allow ECSs in a VPC subnet to communicate with each other using private network domain names. You can also directly access cloud services through private DNS servers.

    If you want to use other public DNS servers for resolution, you can change the default DNS server addresses.

    A maximum of two DNS server IP addresses can be configured. Multiple IP addresses must be separated using commas (,).

    100.125.x.x

    DHCP Lease Time

    The period during which a client can use an IP address automatically assigned by the DHCP server. After the lease time expires, a new IP address will be assigned to the client. Unit: Day/Hour

    If a DHCP lease time is changed, the new lease automatically takes effect when half of the current lease time has passed. To make the change take effect immediately, restart the ECS or log in to the ECS to cause the DHCP lease to automatically renew. For more information, see How Do I Make the Changed DHCP Lease Time of a Subnet Take Effect Immediately?

    365 days

  6. Click OK.