Updated on 2025-09-24 GMT+08:00

Modifying a Subnet

Scenarios

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

Procedure

  1. Go to the subnet list page.
  2. In the subnet list, locate the target subnet and click its name.

    The subnet details page is displayed.

  3. On the Summary tab, click on the right of the parameter to be modified and modify the parameter as prompted.
    Table 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Name

    The subnet name. The name:
    • Can contain 1 to 64 characters.
    • Can contain letters, digits, underscores (_), hyphens (-), and periods (.).

    Subnet

    DNS Server Address

    • Huawei Cloud DNS server addresses are entered by default. The DNS servers can resolve both public and private domain names.

      You can configure private zones to enable ECSs in a VPC to access each other using private domain names. Additionally, you can use the private DNS servers to directly access the private IP addresses of cloud services, such as OBS and SMN. This access offers higher performance and lower latency than Internet-based access.

    • If you want to use other public DNS servers for resolution, you can change the default DNS server addresses. If you use other public DNS servers, private domain name resolution is unavailable.

      You can also click Reset on the right to restore the DNS server addresses to the default value.

      Learn more about how changing VPC subnet DNS server addresses affects ECS configurations and takes effect.

    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.
    • Limited: Set the DHCP lease time. The unit can be day or hour.
    • Unlimited: The DHCP lease time does not expire.

    If the time period is changed, the new lease time takes effect when the instance (such as an ECS) in the subnet is renewed next time. You can wait for the instance to be renewed automatically or manually modify the lease time. If you want the new lease time to take effect immediately, manually renew the lease or restart the ECS.

    -

    Description

    Supplementary information about the subnet. This parameter is optional.

    The description can contain a maximum of 255 characters and cannot contain angle brackets (< or >).

    -