Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't associate an Elastic IP on Amazon EC2 Instance

I just create a new EC2 instance on Amazon, with default options, and there is no way to associate an Elastic IP with this instance. The options are not available, and I haven't reach my limit.

AWS added automatically an public ip, but I am afraid that this is not flexible as an Elastic IP (I will install Nginx on this instance).

Anyone knows what networking configuration I need to change to AWS allow me set up Elastic IPs?

enter image description here

like image 979
John John Pichler Avatar asked Sep 05 '16 12:09

John John Pichler


People also ask

How do I associate Elastic IP with EC2 instance?

To associate an Elastic IP address with an instanceOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Elastic IPs. Select an Elastic IP address and choose Actions, Associate address. Select the instance from Instance and then choose Associate.

Can't connect to EC2 with Elastic IP?

Short description. If you can't connect to an Amazon EC2 instance or an elastic network interface that has an attached Elastic IP address, be sure that: Security group rules for inbound traffic allow connection to the port or protocol.

How do I associate an elastic IP to a subnet?

To tag an Elastic IP addressOpen the Amazon VPC console at https://console.aws.amazon.com/vpc/ . In the navigation pane, choose Elastic IPs. Select the Elastic IP address and choose Tags. Choose Manage tags, enter the tag keys and values as required, and choose Save.

What is elastic IP in AWS EC2?

An Elastic IP address is a reserved public IP address that you can assign to any EC2 instance in a particular region, until you choose to release it. To allocate an Elastic IP address to your account in a particular Region, see Allocate an Elastic IP address.

What is the elastic IP address in Amazon EC2?

The elastic IP address is a static public address that stays always the same regardless if we are stopping an Amazon EC2 instance. All the mentioned IP addresses (private, public, elastic) can be seen under the Description tab of every Amazon EC2 instance.

How do I associate an elastic IP address to an instance?

Under Associate Elastic IP address, search for the running instance that should get an elastic IP address and choose the private IP address that will be associated with Elastic IP address, and then select Associate.

Why can't I connect to an Amazon EC2 instance?

If you can't connect to an Amazon EC2 instance or an elastic network interface that has an attached Elastic IP address, be sure that: Security group rules for inbound traffic allow connection to the port or protocol.

How many types of IP addresses can be assigned to EC2 instance?

Three types of IP addresses can be assigned to Amazon EC2 instance: private IP, public IP, and elastic IP. The private IP address is used for internal communication between instances that are in the same VPC. It is assigned by Amazon DHCP and it is a static IP address.


Video Answer


1 Answers

From the availability zone it seems your Instance is in a VPC so when you are allocating a new Elastic IP be sure you are allocating the IP address for a VPC as classic Elastic IP cannot be attached to a EC2 instance in a VPC. Once you allocate Elastic IP you will be able to associate that elastic IP using your method.

Check this screenshot.

enter image description here

like image 175
error2007s Avatar answered Oct 06 '22 16:10

error2007s