Lab 7. Using Elastic IPs

Overview

In this lab you will be learning how to create Elastic IP, How to associate & re associate  Elastic IP to your instances.

Elastic IP

An Elastic IP address is a static IPv4 address designed for dynamic cloud computing. An Elastic IP address is associated with your AWS account. An Elastic IP address is a public IPv4 address, which is reachable from the Internet. If your instance does not have a public IPv4 address, you can associate an Elastic IP address with your instance to enable communication with the Internet; for example, to connect to your instance from your local computer.

In this Lab you will learn:

  • How to Allocate a new Elastic IP Address
  • How to associate and re-associate the Elastic IP you allocated to your instances
  • How to check IPs you allocated in the browser.

The image shown below is the architecture for this lab.

s

To Create an Elastic IP go to > Services > Select EC2> In the left pane you will find Elastic IPs. Click on it

Screenshot (9)

Click on Allocate New Address in order to allocate a new IP.

Screenshot (10)

Click on Associate. 

Screenshot (11)

When you click on Associate you will get your allocated IP as you can see the image below with the allocated IP.

Screenshot (12)

Right click on the IP you allocated and click on Associate IP address.

Screenshot (13)

Select Instance radio button and select your webserver, Select your private IP ,Click on Associate.

1

2

Now open your browser and copy the New IP you allocated and Paste the name of the application and you will see the Web page. The server IP will be the Private IP but in the URL bar it shows the Elastic IP.

3

Go to Elastic IPs again, right click on the Elastic IP you allocated select associate address, select your alternative webserver you created with AMI  and now tick on the re-associate and click Associate.

4

Copy the new IP address on the browser with the application name. The server IP will be the private IP address which is allocated to Alternative webserver.

5

After all these steps are completed, you are done with lab 7.

Conclusion

By the end of this lab you have learned:

  • How to Allocate a new Elastic IP Address
  • How to associate and re-associate the Elastic IP you allocated to your instances
  • How to check IPs you allocated in the browser.

Budget

An Elastic IP address doesn’t incur charges as long as the following conditions are true:

  • The Elastic IP address is associated with an Amazon EC2 instance.
  • The instance associated with the Elastic IP address is running.
  • The instance has only one Elastic IP address attached to it.

If you’ve stopped or terminated an EC2 instance with an associated Elastic IP address and you don’t need that Elastic IP address any more, consider disassociating or releasing the Elastic IP address by following the instructions at Working with Elastic IP Addresses.

Note: After an Elastic IP address is released, you can’t provision that same Elastic IP address again, though you can provision a different Elastic IP address.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s