Bobcares

EC2 assign static public IP address – How to do it

by | Jul 15, 2021

Wondering how to assign static public IP address on EC2? We can help you.

An Elastic IP address is a static public IPv4 address associated with your AWS account in a specific Region.

At Bobcares, we often get similar queries as a part of our Server Management Services.

Today, let’s see how our Support Engineers assign static public IP address.

 

How to assign static public IP address on EC2?

You can associate an Elastic IP address with your EC2 instance at any time using one of the following tools:

  • The Amazon EC2 console
  • The AWS Command Line Interface (AWS CLI)
  • AWS Tools for Windows PowerShell

Today, let us go through the steps followed by our Support Techs to assign static public IP address on EC2.

To allocate and associate an Elastic IP address with your EC2 Windows or Linux instance, follow these steps:

  • Allocate an Elastic IP address from either Amazon’s pool of public IPv4 addresses or a custom IP address pool that you bring to your AWS account.
  • Associate the Elastic IP address with a running instance.

You can also disassociate an existing Elastic IP address, and then re-associate it with a different instance.

Allocate an Elastic IP address from Amazon’s pool of public IPv4 addresses

You can allocate an Elastic IP address from Amazon’s pool of public IPv4 addresses, or from a custom IP address pool that you have brought to your AWS account.

You can allocate an Elastic IP address using new console follow the steps below:

1.Firstly, open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
2.In the navigation pane, choose Network & Security, Elastic IPs.
3.Then, choose Allocate Elastic IP address.
4.For Public IPv4 address pool, choose one of the following:

  • Amazon’s pool of IPv4 addresses—If you want an IPv4 address to be allocated from Amazon’s pool of IPv4 addresses.
  • My pool of public IPv4 addresses—If you want to allocate an IPv4 address from an IP address pool that you have brought to your AWS account. This option is disabled if you do not have any IP address pools.
  • Customer owned pool of IPv4 addresses—If you want to allocate an IPv4 address from a pool created from your on-premises network for use with an AWS Outpost. Disable this option if you do not have an AWS Outpost.

5.Add or remove a tag.
6.For Key, enter the key name.
7.For Value, enter the key value.
8.Finally, choose Allocate.

Associate an Elastic IP address with an instance or network interface

You can associate an Elastic IP address with an instance or network interface using the new console with the steps below:

  1. Firstly, open the Amazon EC2 console.
  2. In the navigation pane, choose Elastic IPs.
  3. Select the Elastic IP address to associate and choose Actions, Associate Elastic IP address.
  4. For Resource type, choose Instance.
  5. For instance, choose the instance with which to associate the Elastic IP address. You can also enter text to search for a specific instance.
  6. For Private IP address, specify a private IP address with which to associate the Elastic IP address.
  7. Finally, choose Associate.
To associate an Elastic IP address with a network interface
  1. Open the Amazon EC2 console.
  2. In the navigation pane, choose Elastic IPs.
  3. Select the Elastic IP address to associate and choose Actions, Associate Elastic IP address.
  4. For Resource type, choose Network interface.
  5. For Network interface, choose the network interface with which to associate the Elastic IP address. You can also enter text to search for a specific network interface.
  6. For Private IP address, specify a private IP address with which to associate the Elastic IP address.
  7. Finally, choose Associate.

 

[Still, have any queries on EC2? – We can help you.]

Conclusion

Today, we saw how our Support Techs assign static public IP address on EC2.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF