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:
- Firstly, open the Amazon EC2 console.
- In the navigation pane, choose Elastic IPs.
- Select the Elastic IP address to associate and choose Actions, Associate Elastic IP address.
- For Resource type, choose Instance.
- For instance, choose the instance with which to associate the Elastic IP address. You can also enter text to search for a specific instance.
- For Private IP address, specify a private IP address with which to associate the Elastic IP address.
- Finally, choose Associate.
To associate an Elastic IP address with a network interface
- Open the Amazon EC2 console.
- In the navigation pane, choose Elastic IPs.
- Select the Elastic IP address to associate and choose Actions, Associate Elastic IP address.
- For Resource type, choose Network interface.
- 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.
- For Private IP address, specify a private IP address with which to associate the Elastic IP address.
- 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.
0 Comments