Why would an instance lose it's IP intermittently

0

One of our clients reports ec2 instance, configured in private subnet loses it's IP address intermittently after a reboot. I would appreciate some help with identifying the root cause and a possible fix to the issue.

  • Are you rebooting the EC2 instance or stop/starting it? If you are stop/start it, it will get a new IP each time.

asked 2 years ago222 views
1 Answer
0

The phrases "loses it's IP address" is a little unclear - it'd be good to have some extra detail about how the client is determining this.

Otherwise: First, when this happens I'd check in the console to see if the instance has had an IP address allocated by DHCP. If not, then definitely raise a support ticket because all instances should be automatically (and quickly) allocated an IP address.

If the instance does have an IP address in the console then there is probably an issue with the operating system somewhere. Look into the logs and see if you can see any messages that relate to this.

Again, more detail would help - operating system type; logs; anything at all.

profile pictureAWS
EXPERT
answered 2 years ago
  • Thanks for the response. I was able to get more details from the client and the issue was not properly reported. Issue: This instance intermittently fails health check. When stopped and restarted, the health check issue is resolved but will occurs again after a while. Was not able to lock down a time line between each occurrence. But was informed it happens quite frequently lately. During such occurrences, client gets a network issue when trying to ssh/connect to the box using a third party tool. I pull the logs for that instance, and will attach in the comment section.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions