Help Center/ Elastic Cloud Server/ Troubleshooting/ Linux ECS Issues/ Why Is the IP Address Lost After the System Time of an ECS Is Modified?
Updated on 2024-08-15 GMT+08:00

Why Is the IP Address Lost After the System Time of an ECS Is Modified?

Symptom

After the system time of an ECS is modified, its IP address is lost.

Possible Cause

The time range you modified exceeds the DHCP lease time.

The default DHCP lease time set when you create a subnet is 365 days (24 hours for subnets created before). If you manually change the ECS system time and the time difference between the old and new time is longer than 24 hours, the DHCP lease may be expired and the ECS IP address will be lost.

Solution

If you do need to change the ECS system time, and the time difference is longer than your DHCP lease time, change the ECS IP address obtaining mode to static before you change the ECS system time.