How do I configure a secondary private IP address for my Amazon EC2 instance?

Last updated: 2019-11-20

I want to configure a secondary private IP address for my Amazon Elastic Compute Cloud (Amazon EC2) instance. How do I do that? 

Short Description

You can assign a secondary private IP address to an Amazon EC2 instance when you launch the instance. If you already launched the EC2 instance, you can assign a secondary private IP address to the network interface.

Resolution

  1. Assign the secondary IPv4 address to your instance.
  2. Configure the instance operating system to recognize the new IP address. For Amazon Linux, see Configuring the Operating System on Your Instance to Recognize the Secondary Private IPv4 Address. For Windows Server, see Configuring a Secondary Private IPv4 Address for Your Windows Instance.
  3. (Optional) If you need a public IP, you can associate an Elastic IP address with your new secondary private IP address.
    Note: If you have more than one Elastic IP address on an EC2 instance, charges will apply.

Did this article help you?

Anything we could improve?


Need more help?