All Products
Search
Document Center

An Ubuntu instance fails to obtain the IP address after it is Elastic Network Interface

Last Updated: Dec 29, 2020

Problem description

After the Elastic Network Interface is enabled for an Ubuntu system instance, the server cannot obtain the IP address.

Cause

Network interface controller information configuration is incorrect.

Solution

  1. Log on to the instance and edit /etc/netplan/ configuration file. Add the following eth1 network interface controller information.

  2. Run the following command to activate the configuration information.
    netplan apply

Scope

  • Elastic Compute Service