You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
IPv4 address
Configuring secondary private IPv4 addresses for ECS instances
Copy page
Download PDF
Configuring secondary private IPv4 addresses for ECS instances
Applicable scenarios​
After you assign a secondary private IPv4 address to the primary or secondary network interface of an ECS instance, the ECS image cannot identify the secondary private IPv4 address. You need to log in to the ECS instance and configure the secondary private IPv4 address manually.​
Prerequisites​
  • A secondary private IPv4 address is assigned to the primary or secondary Network Interface of the ECS instance. Otherwise, assign a secondary private IPv4 address. For more information, see Assigning IPv4 addresses.​
  • ECS images cannot recognize the private IPv4 address of the secondary network interface. You can log in to the ECS instance and execute the command to view the private IP address of the secondary network interface.​
tip​
Commands for viewing IP addresses:​
  • Linux: Execute the ip address show command in the command line.​
  • Windows: Execute the ipconfig command in the command line.​
Procedure​
​
Windows
CentOS
Ubuntu/Debian/veLinux
OpenSUSE
​
  1. Log in to the ECS instance. For more information, see Logging in to instances.​
  1. View the subnet mask and default gateway of the instance.​
  1. On the Windows desktop, click "Start > Windows PowerShell" to open the Windows PowerShell tool.​
  1. Execute the ipconfig command to view the subnet mask and default gateway.​
  1. On the Windows desktop, open Network and Sharing Center.​
  1. Click "Change adapter settings" to open the Network Connections window.​
  1. Double-click the network connection name, such as Ethernet 3. In the pop-up network connection status window, click "Properties".​
  1. In the properties dialog box, double-click "Internet Protocol Version 4 (TCP/IPv4)".​
  1. In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select "Use the following IP address", and then click "Advanced".​
  1. In the Advanced TCP/IP Settings dialog box, configure the IP address.​
  1. In the IP addresses field, click "Add". In the pop-up window, enter the assigned IP address and the subnet mask retrieved from the query. You can add multiple IP addresses to the same network interface.​
  1. In the Default gateways field, click "Add". In the pop-up window, enter the default gateway obtained from the query.​
  1. Click "OK" in each window to save the configuration.​
  1. In Windows PowerShell, execute the ipconfig command to view the updated IP configuration.​
​
Last updated: 2026.06.18 17:49:50