How can I assign my EC2 Windows or Linux instance a static public IP address? AWS

Every time I stop and start my Amazon Elastic Compute Cloud (Amazon EC2) instance, the auto-assigned public IP address connected with it changes. How can I provide my Windows or Linux EC2 instance a permanent public IP address that doesn’t change when I stop and start the instance?

What is the meaning of an elastic IP address?

A static public IPv4 address associated with your AWS account in a certain Region is known as an Elastic IP address. An Elastic IP address is kept after you stop and relaunch your instance in a virtual private cloud, unlike an auto-assigned public IP address (VPC).

You can use one of the following methods to associate an Elastic IP address with your EC2 instance at any time.The Amazon EC2 console

  • AWS Tools for Windows PowerShell
  • AWS Command Line Interface (AWS CLI)

When working with static IP addresses, keep the following in mind: 

  • If you’re seeing issues when running AWS CLI commands, make sure you’re running the latest recent version.
  • Using auto-assigned public IP address, you can’t keep or reserve the instance’s existing public IP address.
  • An auto-assigned public IP address cannot be converted to an Elastic IP address.
  • AWS accounts have a default limit of 5 Elastic IP addresses per Region. See Elastic IP address limit for additional information on limits and how to request an increase.

Follow these procedures to assign and associate an Elastic IP address to your EC2 Windows or Linux instance:

  • Choose an Elastic IP address from Amazon’s public IPv4 address pool or a custom IP address pool that you add to your AWS account.
  • Assign a running instance to the Elastic IP address.

At Velan, our server support engineers can help to configure Elastic IPs on your AWS EC2servers. If you are interested in our service, please fill the Quick connect form to get in touch with us.

Credentials

Quick Connect With Us

captcha reload