How Do I Handle the ECS IP Address Obtaining Failure?
- Check whether the DHCP function of the subnet is enabled (enabled by default).
Switch to the subnet details page. If DHCP is disabled, you must manually configure a static IP address for the ECS by referring to step 4.
- Run the following command to check whether the dhclient process exists:
ps -ef | grep dhclient
- If the dhclient process does not exist, log in to the ECS and try restarting the ECS NIC or sending a DHCP request.
- If the DHCP client does not send requests for a long time, for example, the fault occurs again after the NIC restarts, you can use the following method to configure the static IP address.
- Linux OS:
- Run the following command to open the /etc/sysconfig/network-scripts/ifcfg-eth0 file:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
- Modify the following configuration items in the /etc/sysconfig/network-scripts/ifcfg-eth0 file.
BOOTPROTO=static
IPADDR=192.168.1.100 #IP address
NETMASK=255.255.255.0 #Subnet mask
GATEWAY=192.168.1.1 #Gateway address
- Run the following command to restart the network service:
- Run the following command to open the /etc/sysconfig/network-scripts/ifcfg-eth0 file:
- Windows OS:
On the Local Area Connection Status tab, click Properties. In the displayed area, Select Internet Protocol Version 4 (TCP/IPv4) and click Properties. In the displayed area, enter the IP address, subnet mask, and the default gateway address.
- Linux OS:
- Check the ECS messages log in the /var/log/messages directory to troubleshoot the ECS.
Search for the NIC MAC address and check whether processes that cause failures in obtaining IP addresses over DHCP exists.
- If the failure cannot be rectified after you perform the preceding operations, contact technical support.
Provide the customer service with the ECS ID, the ID of the subnet used by the ECS, and the ID of the VPC used by the ECS.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.