01 logo

How to add additional IP addresses to an EC2 (Amazon Elastic Compute Cloud)

AWS - Adding Secondary IPv4 addresses

By JLMC3791Published 2 years ago 3 min read
Like
How to add additional IP addresses to an EC2 (Amazon Elastic Compute Cloud)
Photo by J. Kelly Brito on Unsplash

Let me tell you, that this article is going to be for the more technical minded and assumes that you have some experience with Amazon Web Services and Amazon Elastic Compute Cloud or EC2 for short.

This article is aimed at individuals with experience, but who may not fully know how to add certain features or work with certain aspects of the Amazon Web Services environment. I still consider myself a bit of a novice, but I can say I have been working with AWS for 4 years and have taken multiple trainings including such courses as Big Data on AWS.

This brings me to the topic of this article, “ Adding additional IP addresses to an EC2”.

Why might additional IP addresses be needed? There might be a number of reasons. A web server might need to host sites via a different IP address than the primary IP of the server or even a database team setting up a listener or a witness as part of a “Fail Over Cluset” may need additional IP addresses assigned to the different servers that are involved in the cluster setup. What ever the reason, don't get bogged down thinking to hard about it. This is a "How To" and for those tech people reading this, it is just a process that can be easily followed.

(Note: With AWS it is always best that the servers be in different availability zones. This way if for any reason a zone were to ever go completely down, the fail over will be in a zone that is up.)

Here are the steps after you have logged into the AWS account.

1. Go to The EC2 Dashboard and click on the Instances (running).

2. Find the EC2 Instance that you are needing to add the additional IP addresses too and Click on the instance ID. Your machines instance ID will not be the same as the one in this image. This is just an example, but it should look similar.

3. Click on Actions>Click on Networking>Click on Manage IP addresses.

NOTE: After you click on Manage IP addresses your screen should look similar to the following.

4. Click on the arrow next to eth0 in order to expand it.

5. On the next screen you will be able to click Assign New IP address. Most companies have already a range of IP addresses that will be used. It will be simple to just use the Auto-assign feature. Given that we are adding new IP addresses from an already set range as setup within the VPC, you can simply use the “Auto-Assign” feature.

(What is VPC? Or in this case, “What is Amazon VPC?”)

If more than one additional Ip address is needed, you can click “Assign new IP address” a second time. If there is an expectation that these secondary IPv4 addresses might be needed in the future you can check the box that says “Allow Secondary private IPv4 addresses to be reassigned” otherwise just leave it unchecked.

6. Click the Save button at the bottom.

7. Congratulations. You have just assigned additional IP addresses to your EC2 Instance. Please remember you may not see the IP addresses right a way. I would recommend that you do a reboot of the machine. Some people may think a reboot is not necessary, but experience has shown that it does help when ever you make such a change to an AWS EC2 networking card, or even if you make a change to any of the security groups that help manage traffic to the EC2 Instance.

I always suggest, doing a full stop of the instance. Wait until it is fully stopped and then when “Start Instance” is now longer grayed out, click it to start the instance.

(What is an AWS Security Group? When thinking about this question, please always make sure that you consider the answer based on the Operating System. “Amazon EC2 Security Groups for Linux instances” or “Amazon EC2 Security Groups for Windows instances”. For additional information and understanding of how Security groups affect the firewall for your instance, you may also want to review “Security Groups for your VPC”.)

Thank you for reading this “How To!”

how to
Like

About the Creator

JLMC3791

Political Scientist, IT Specialist, Thinker, Lover, Feeler, Social Media Dreamer.

🔥 #Opinion🔥#Independent🔥#Conservative🔥#CommonSense🔥#Realist🔥#USA🔥#RISE🔥#Satire🔥#Repost🔥#Freedom🔥#Politics🔥#God🔥#Hope🔥#Love🔥#Faith

Reader insights

Be the first to share your insights about this piece.

How does it work?

Add your insights

Comments

There are no comments for this story

Be the first to respond and start the conversation.

Sign in to comment

    Find us on social media

    Miscellaneous links

    • Explore
    • Contact
    • Privacy Policy
    • Terms of Use
    • Support

    © 2024 Creatd, Inc. All Rights Reserved.