If a private image is created from an ECS or external image file and the VM where the ECS or external image file is located is configured with a static IP address, you need to change the NIC attribute to DHCP so that the new ECSs created from the private image can dynamically obtain an IP address.
The configuration method varies depending on OSs.
When registering an external image file as a private image, configure DHCP on the VM where the external image file is located. You are advised to configure DHCP on the VM and then export the image file.
You have logged in to the ECS used to create a Windows private image.
For details about how to log in to an ECS, see Elastic Cloud Server User Guide.
This section uses Ubuntu 14.04 as an example to describe how to query and configure NIC attributes of an ECS.
vi /etc/network/interfaces


You can insert a number sign (#) in front of each line of static IP address configuration to comment it out.

If the ECS has multiple NICs, you must configure DHCP for all the NICs.

The system saves the configuration and exits the vi editor.
Configure DHCP to enable the ECS to obtain IP addresses continuously.