EC2 Renew IP for Network Interface from pool not Elastic

0

Sorry if this is a really dumb question but I have done a fair amount of googling and cannot find an answer to my question.

I have an EC2 instance with two network interfaces. One of them has an elastic IP address, the other does not. When I first launched the instance the non-Elastic interface was assigned a random public IP address from the pool. Perfect that's what I wanted. Effectively I can connect to my instance from the elastic IP and then I am routed through the other interface to access the internet, with that IP address changing from time to time. The problem is for some reason the non-Elastic interface seems to have dropped its random pool assigned public IP address and I for the life of me cannot figure out how to get it to go out and fetch a new pool IP address.

I have tried rebooting it from SSH, restarting the instance from the management console and a lot of Googling but cannot find anything.

Steve
asked a year ago248 views
2 Answers
0

If you absolutely have to renew the ip, assign a elastic ip and then remove it directly after. You should now have a new non elastic ip.

answered a year ago
0

simple process will be. Allocate an elastic IP. Assign it to interface that lost the elastic IP.

This way both interface will have elastic IP. I guess there is no charges difference between public ip and elastic IP.

But if you really want random IP on other interface. Then check if subnet setting auto assign public IP is changed? if not, then may be time to restart the instance?

answered a year ago

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