CloudThat's Blog
www.cloudthat.com
  • AWS
  • Azure
  • AI/ML
  • Data Analytics
  • DevOps
  • GCP
  • Cybersecurity
  • Test Prep
  • Training
  • Consulting

Easy-Steps-to-Connect-Multiple-Public-IPs-to-a-Single-Amazon-EC2-Server
Nishant Ranjan Nishant Ranjan

Easy Steps to Connect Multiple Public IPs to a Single Amazon EC2 Server

July 25, 2022 | Comments(0) |

TABLE OF CONTENT

1. Introduction to AWS Elastic IP
2. Difference between Elastic IP, Public IP, and Static IP
3. Steps to connect multiple public IPs to a single EC2 server
4. Personal Health Dashboard View
5. Conclusion
6. About CloudThat
7. FAQs

 

Introduction to AWS Elastic IP

Elastic IP (EIP) addresses are more like static IPv4 addresses suitable for cloud computing. The main goal of these IPs is to hide any software or instance failures from your AWS account. This is accomplished by remapping the address to another instance that is as soon as possible available in your account. Your AWS account is automatically assigned an IP address, which remains yours until you wish to surrender it. However, you can specify the IP in a DNS record for your domain. It ensures that the provided domain directs traffic to your instance.

Like any other public IPv4 address, this address can be accessed over the internet. If your instance does not have a public IPv4 address, you can associate this IP address with it to allow communication from the internet to the instance. Currently, the AWS EIP does not support IPv6 addresses.

Difference between Elastic IP, Public IP, and Static IP

Your public IP address is how the internet recognizes you. Your internet-connected device’s public IP address is the address it uses to communicate with the rest of the internet. Static IP addresses are IP addresses that do not change. They’re common in business and cloud computing, which is why they are included in Amazon’s Elastic IP framework. For a variety of reasons, a static IP address is advantageous. A static IP address is helpful for DNS queries in cloud computing. If IP addresses change, the process of loading content may be impeded.

According to AWS, Elastic IP is used for dynamic cloud computing in the AWS cloud environment. Understanding the difference is critical because if your AWS instance goes down, you’ll need to keep your IP address and maintain contact with your account.

As a result, an Elastic IP address is a cross between a public and a static IP address. It allows you to continue advertising AWS instances throughout your AWS network infrastructure.

AWS EC2 servers: – AWS EC2 is a web service that offers on-demand scalable compute capacity on a pay-per-use basis. EC2 is built on server virtualization, which allows an essentially limitless number of computers with nearly limitless capacity. As AWS customers, we refer to these machines as “instances.” Users can dynamically build, work, and grow EC2 instances according to their needs.

There are specific requirements where there is a need to add multiple public IP addresses to a single EC2 server in AWS. In this blog, we will understand simple steps to achieve this requirement.

Steps to connect multiple public IPs to a single EC2 server

Step 1 – Create an EC2 instance (Amazon Linux 2) and also allocate two elastic IPs

Amazon EC2

Amazon EC2

Step 2 – Select your EC2 server, click on Actions>>Networking>>Manage IP addresses

Amazon EC2

Step 3 – Add one more Private Ip and then click on Save.

Amazon EC2

Step 4 – Go to elastic IPs and select EIP-1. Click Actions>> Associate Elastic IP address. Select the EC2 server, select a private Ip from the dropdown, and then click Associate. Repeat the same steps for EIP-2 

Amazon EC2

Step 5 – Go to your EC2 server console and you can see that both the elastic IPs are successfully associated

Amazon EC2

Step 6 – Now SSH into your server and run the following command “ip addr li” to check the associated private IPs, you can see only one private IP is associated for now

Amazon EC2

Step 7 – So to solve this, we must run a command to refresh the network “sudo service network restart “, once restarted run “ip addr li” command again and confirm if 2 private IPs are propagating or not

Amazon EC2

Conclusion

We can conclude that more than one public IP can be attached to the EC2 server, for which we also need more private IPs to the server, and public IPs can be mapped with the private IPs easily, as shown above. Once Elastic IPs are successfully attached, you can easily use them to access your server. Also, this can be configured in Windows and other OS types; you just need to configure and map the private IPs in the server.

About CloudThat

CloudThat is the official AWS (Amazon Web Services) Advanced Consulting Partner, Microsoft Gold Partner, Google Cloud Partner, and Training Partner helping people develop knowledge of the cloud and help their businesses aim for higher goals using best-in-industry cloud computing practices and expertise. We are on a mission to build a robust cloud computing ecosystem by disseminating knowledge on technological intricacies within the cloud space. Explore our consulting here.

If you have any queries regarding AWS EC2 server integration, public, private or hybrid cloud, or any other query regarding cloud services, drop a line in the below comments section. I will get back to you at the earliest. 

FAQs

  1. Can this be done with all OS types?

Yes. We need to configure and map the private IPs in the server.

  1. Can associate Elastic IPs easily be disassociated?

Yes, they can be disassociated and deallocated easily.


Leave a Reply

Click here to cancel reply.

Benefit from our new offering 'Azure Mastery Pass' – One pass to attend all our Microsoft Azure courses for 1 year & get trained from best of our Consultants and Microsoft Certified Trainer.



Register Your Interest Now! Please fill out below details & we will revert within 24 hours.

Thank you for your interest.
Oops something went wrong.

Follow us for latest articles

Popular Posts

  • Top Cloud Service Providers in 2021: AWS, Microsoft Azure and Google Cloud Platform
  • Tips to Crack AZ-900: Microsoft Azure Fundamentals Exams
  • Trust Neither a Zero Nor a One! Zero Trust Model Explained (without jargon)
  • Site-to-Site VPN connection between AWS & Azure
  • Sample Questions for Amazon Web Services Certified Solution Architect Certification (AWS Architect Certification) – Part I

Recent Posts

  • Detailed Guide to Accelerate Data Analytics Engine with Apache Spark – Part 1
  • EASY STEPS FOR AWS S3 CROSS-ACCOUNT REPLICATION
  • Security Practices for Designing AWS Multi-Tenant SaaS Environment
  • Beginner’s Guide to Git: The Ultimate Version Control System
  • The Tech Talent Shortage: Its Impact on Businesses and the Solution

Recent Comments

  • Vaishali on Top 5 Popular DevOps Tools in 2022
  • smith on Blockchain Technology And Cryptocurrency Overview, Benefits, And Use cases
  • James Taylor on Blockchain Technology And Cryptocurrency Overview, Benefits, And Use cases
  • vasanth on Simplify Digital Twins Construction with AWS IoT TwinMaker
  • Anusha Shanbhag on Top Amazon AI Specialized Services: Machine Learning, Artificial Intelligence, and more – Part 2

Archives

Categories

  • AI
  • AI/ML
  • Analysis
  • Analytics
  • API
  • Apps Development
  • Artificial Intelligence
  • Artificial Intelligence and Machine Learning
  • Automation
  • AWS
  • AWS Amplify
  • AWS EKS
  • AWS PinPoint
  • AWS S3
  • AWS Thunderbird
  • AWS Transit Gateway
  • AWS VPC
  • Azure
  • Azure Machine Learning
  • Big Data
  • Blockchain
  • Certification BootCamp
  • Cloud Computing
  • Cloud Data Science
  • Cloud Migration
  • Cloud Native Application Development
  • Cloud security
  • Comparision
  • Containerization
  • Cryptocurrency
  • Cybersecurity
  • Data Analytics
  • DevOps
  • Docker
  • Google Cloud (GCP)
  • Hadoop
  • Identity Access and Management
  • Industry Stories
  • Internet of Things (IoT)
  • Interviews
  • Kubernetes
  • Machine Learning
  • Microsoft 365
  • Microsoft Azure
  • ML
  • MongoDB
  • News
  • NoSQL
  • OpenStack
  • Power Platforms
  • Private Cloud
  • Project Management
  • Tutorials
  • Uncategorized
  • vCloud Air
  • Videos
  • VMware
  • Windows

Like us for latest articles

© 2022 CloudThat Technologies. All rights reserved.