To set a Static Private IP address for an Amazon EC2 Windows instance, the network interface IP address and Windows adapter IP addresses must match.
Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.
Today, let us see how we can set a static private IP.
Set a Static Private IP address for an Amazon EC2 Windows instance
Generally, we don’t have to set a static private IP address on an Amazon EC2 Windows instance.
However, we may find the need to use two private IP addresses for the Windows network adapter.
To do so, our Support Techs suggest the steps below:
1. initially, we open the Amazon EC2 console, and from the navigation pane, we select Instances.
2. Once we select the instance, from the Description tab, we choose the linked name next to Network interfaces and then the Interface ID.
3. Then we go to, Actions > Manage IP Addresses. We can see the list of primary private IPv4 IP address.
4. Here, we select, Assign new IP.
For Auto-assign, we provide a new IP address, then select Yes, Update.
5. After that, we connect to the Amazon EC2 Windows instance using RDP.
6. Here, we open Network and Sharing Center > Change adapter settings.
7. We right-click and open the context menu for the network connection, and then select Properties.
8. Select Internet Protocol Version 4 (TCP/IPv4) > Properties.
9. Then we can see the option, Use the following IP address.
In the IP address section, we enter the primary private IPv4 address.
For the Subnet mask, we enter the network mask for the subnet.
For the Default gateway, we enter the gateway for the subnet.
Then we select, Advanced.
10. For IP addresses, we select Add, enter the new private IP address and subnet mask and then choose Add.
If necessary, we go to the DNS tab, enter a DNS server address > OK.
In order to verify a successful execution, we open a command prompt window as administrator and ping both private IP addresses.
[Need help with the steps? We are here to help you]
In short, we saw how our Support Techs set a static private IP on the Amazon EC2 Windows instance.