- Newest
- Most votes
- Most comments
Losing a Private IPv4 address in an EC2 instance is unusual. When a new EC2 instance is launched into an IPv4 subnet the instance receives a primary private IP address from the IPv4 address range of the subnet. A private IPv4 address, regardless of whether it is a primary or secondary address, remains associated with the network interface when the instance is stopped and started, or hibernated and started, and is only released when the instance is terminated
Related link for additional support: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html
In case you are facing an unexpected behavior different to the explanation above, I suggest you also consider checking the EC2 status. Make sure that there are no ongoing incidents in the AWS region where your EC2 is hosted. AWS's status page will have this information.
If you observed an unexpected behavior but the EC2 service was up and running on your region during your considered timestamp, as next troubleshooting step I would suggest checking the EC2 Instance Logs. You can use the AWS Console to get the system log or you can SSH into the instance and check the logs. Look for any errors or messages that might indicate what happened to the network interface. You can try using 'dmesg' or try looking at the logs in '/var/log/'
If all else fails and the issue persists, consider contacting AWS Support to further deep dive into your issues.
I hope that helps,
Rocky
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago