Modifying a Subnet¶
Scenarios¶
Modify the subnet name, NTP server address, and DNS server address.
Procedure¶
Log in to the management console.
Click in the upper left corner and select the desired region and project.
On the console homepage, under Network, click Virtual Private Cloud.
In the navigation pane on the left, click Virtual Private Cloud.
On the Virtual Private Cloud page, locate the VPC for which a subnet is to be modified and click the VPC name.
In the subnet list, locate the target subnet and click Modify. Modify the parameters as prompted.
¶ Parameter
Description
Example Value
Name
Specifies 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 if necessary. A maximum of five DNS server addresses can be configured. Multiple IP addresses must be separated using commas (,).
For more information about private DNS servers, see What Are the Private DNS Servers Provided by the DNS Service?
100.125.x.x
NTP Server Address
Specifies 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
Click OK.