I want to configure a secondary private IP address for my Amazon EC2 instance.

You can assign multiple private IP addresses to an instance in your VPC to do the following:

  • Host multiple websites on a single server by using multiple SSL certificates on a single server and associating each certificate with a specific IP address.
  • Operate network appliances, such as firewalls or load balancers, that have multiple private IP addresses for each network interface.
  • Redirect internal traffic to a standby instance in case your instance fails, by reassigning the secondary private IP address to the standby instance.

  1. Assign the secondary IP address to your instance. See Assigning a Secondary Private IP Address in the Amazon EC2 User Guide.
  2. Configure the instance OS to recognize the new IP address.
  3. Associate an elastic IP address with your new IP address and  confirm the new address. See Associating an Elastic IP Address with the Secondary Private IP Address and Viewing Your Secondary Private IP Addresses.

Amazon Elastic Compute Cloud (Amazon EC2), Amazon Virtual Private Cloud (Amazon VPC), Linux, elastic network interface (ENI), asymmetric routing

AWS Developer Forums: Amazon Virtual Private Cloud

Amazon EC2 User Guide: Multiple Private IP Addresses

Amazon Virtual Private Cloud User Guide: Networking in Your VPC


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center.