Modifying a Subnet

Scenarios

Modify the subnet name, NTP server address, and DNS server address.

Procedure

  1. Log in to the management console.

  2. Click image1 in the upper left corner and select the desired region and project.

  3. On the console homepage, under Network, click Virtual Private Cloud.

  4. In the navigation pane on the left, click Subnets.

  5. In the subnet list, locate the target subnet and click its name.

  6. On the subnet details page, modify required parameters.

    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

    By default, two DNS server addresses are configured. You can change them as required. A maximum of five DNS server addresses can be configured. Multiple IP addresses must be separated using commas (,).

    100.125.x.x

    NTP Server Address

    The IP address of the NTP server. This parameter is optional.

    You can configure the NTP server IP addresses to be added to the subnet as required. The IP addresses are added in addition to the default NTP server addresses. If this parameter is left empty, no IP address of the NTP server is added.

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

    Note

    • If you add or change the NTP server addresses of a subnet, you need to renew the DHCP lease for or restart all the ECSs in the subnet to make the change take effect immediately.

    • If the NTP server addresses have been cleared out, restarting the ECSs will not help. You must renew the DHCP lease for all ECSs to make the change take effect immediately.

    192.168.2.1

  7. Click OK.